Skip to content

Commit

Permalink
WarpySyncer: lowercase address in address to discord role method
Browse files Browse the repository at this point in the history
  • Loading branch information
asiaziola committed May 15, 2024
1 parent 9c335f1 commit 4878480
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/warpy_sync/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (self *Writer) walletAddressToDiscordRoles(payloads *[]InteractionPayload)
}

for _, w := range addresses {
if id, ok := result.WalletToDiscordId[w]; ok {
if id, ok := result.WalletToDiscordId[strings.ToLower(w)]; ok {
(*walletToRoles)[w] = (*rolesPayload).IdToRoles[id]
}
}
Expand Down

0 comments on commit 4878480

Please sign in to comment.