Update abigen with support for new int and uints

This commit is contained in:
Exca-DK 2025-03-01 01:41:43 +01:00
parent 4038c59845
commit e570c41582
1 changed files with 4 additions and 0 deletions

View File

@ -318,6 +318,10 @@ func bindBasicTypeGo(kind abi.Type) string {
switch parts[2] {
case "8", "16", "32", "64":
return fmt.Sprintf("%sint%s", parts[1], parts[2])
case "24":
return fmt.Sprintf("%sint32", parts[1])
case "40", "48", "56":
return fmt.Sprintf("%sint64", parts[1])
}
return "*big.Int"
case abi.FixedBytesTy: