Skip to content

Commit

Permalink
WarpySyncer: ListaDAO integration - token name lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadeuchi committed Nov 8, 2024
1 parent 750a13d commit 55467aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/utils/eth/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ func (chain Chain) Decimals() float64 {
}

func GetTokenName(contract string) string {
switch contract {
case "0xa835F890Fcde7679e7F7711aBfd515d2A267Ed0B":
switch strings.ToLower(contract) {
case "0xa835f890fcde7679e7f7711abfd515d2a267ed0b":
return "binancecoin"
case "0xb0b84d294e0c75a6abe60171b70edeb2efd14a1b":
return "binancecoin"
case "0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c":
case "0x7130d2a12b9bcbfae4f2634d864a1ee1ce3ead9c":
return "bitcoin"
}

Expand Down
6 changes: 4 additions & 2 deletions tools/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ import (
)

func main() {
runBlock(big.NewInt(43136354))
//runBlock(big.NewInt(43136354))
//runBlock(big.NewInt(43225801))
//runBlock(big.NewInt(43362115))
//runBlock(big.NewInt(43362133))
//runBlock(big.NewInt(43362168))
runBlock(big.NewInt(43542002))
//runBlock(big.NewInt(43542002))
runBlock(big.NewInt(43577161))
//runBlock(big.NewInt(43362177))
}

Expand Down Expand Up @@ -63,6 +64,7 @@ func runBlock(number *big.Int) {
"0x3d4edbf17fbac088d27051c87e095eb25b3e97289b035be825dcce80b7011baa",
"0x11e1ed9dd6a4690b2e3db3cbad7a9c3112eda0e01bfeea7a0ff6cfde5b6a1db5",
"0x7b3c278f97af43f93fd783aa57499e6c51d6b99b9518ae7176b03589a1e2cab5",
"0x6c32d9ad1f4ef4b9afada8999f2b7ddac044ed4fc1d34bba5a1e86e76321d898",
},
tx.Hash().Hex()) {

Expand Down

0 comments on commit 55467aa

Please sign in to comment.