aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/abi/numbers.go
diff options
context:
space:
mode:
authorRJ Catalano <catalanor0220@gmail.com>2017-10-17 19:07:08 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-10-17 19:07:08 +0800
commitdec8bba9d4c5fcb3dd7e51f0f794b3e895c7f52d (patch)
tree7e4713ca276ac1a2cef7cd2dd19dcf8c6fd1f6c4 /accounts/abi/numbers.go
parente9295163aa25479e817efee4aac23eaeb7554bba (diff)
downloadgo-tangerine-dec8bba9d4c5fcb3dd7e51f0f794b3e895c7f52d.tar.gz
go-tangerine-dec8bba9d4c5fcb3dd7e51f0f794b3e895c7f52d.tar.zst
go-tangerine-dec8bba9d4c5fcb3dd7e51f0f794b3e895c7f52d.zip
accounts/abi: improve type handling, add event support (#14743)
Diffstat (limited to 'accounts/abi/numbers.go')
-rw-r--r--accounts/abi/numbers.go47
1 files changed, 17 insertions, 30 deletions
diff --git a/accounts/abi/numbers.go b/accounts/abi/numbers.go
index 5d3efff52..9ad99f90d 100644
--- a/accounts/abi/numbers.go
+++ b/accounts/abi/numbers.go
@@ -25,36 +25,23 @@ import (
)
var (
- big_t = reflect.TypeOf(big.Int{})
- ubig_t = reflect.TypeOf(big.Int{})
- byte_t = reflect.TypeOf(byte(0))
- byte_ts = reflect.TypeOf([]byte(nil))
- uint_t = reflect.TypeOf(uint(0))
- uint8_t = reflect.TypeOf(uint8(0))
- uint16_t = reflect.TypeOf(uint16(0))
- uint32_t = reflect.TypeOf(uint32(0))
- uint64_t = reflect.TypeOf(uint64(0))
- int_t = reflect.TypeOf(int(0))
- int8_t = reflect.TypeOf(int8(0))
- int16_t = reflect.TypeOf(int16(0))
- int32_t = reflect.TypeOf(int32(0))
- int64_t = reflect.TypeOf(int64(0))
- hash_t = reflect.TypeOf(common.Hash{})
- address_t = reflect.TypeOf(common.Address{})
-
- uint_ts = reflect.TypeOf([]uint(nil))
- uint8_ts = reflect.TypeOf([]uint8(nil))
- uint16_ts = reflect.TypeOf([]uint16(nil))
- uint32_ts = reflect.TypeOf([]uint32(nil))
- uint64_ts = reflect.TypeOf([]uint64(nil))
- ubig_ts = reflect.TypeOf([]*big.Int(nil))
-
- int_ts = reflect.TypeOf([]int(nil))
- int8_ts = reflect.TypeOf([]int8(nil))
- int16_ts = reflect.TypeOf([]int16(nil))
- int32_ts = reflect.TypeOf([]int32(nil))
- int64_ts = reflect.TypeOf([]int64(nil))
- big_ts = reflect.TypeOf([]*big.Int(nil))
+ big_t = reflect.TypeOf(&big.Int{})
+ derefbig_t = reflect.TypeOf(big.Int{})
+ uint8_t = reflect.TypeOf(uint8(0))
+ uint16_t = reflect.TypeOf(uint16(0))
+ uint32_t = reflect.TypeOf(uint32(0))
+ uint64_t = reflect.TypeOf(uint64(0))
+ int_t = reflect.TypeOf(int(0))
+ int8_t = reflect.TypeOf(int8(0))
+ int16_t = reflect.TypeOf(int16(0))
+ int32_t = reflect.TypeOf(int32(0))
+ int64_t = reflect.TypeOf(int64(0))
+ address_t = reflect.TypeOf(common.Address{})
+ int_ts = reflect.TypeOf([]int(nil))
+ int8_ts = reflect.TypeOf([]int8(nil))
+ int16_ts = reflect.TypeOf([]int16(nil))
+ int32_ts = reflect.TypeOf([]int32(nil))
+ int64_ts = reflect.TypeOf([]int64(nil))
)
// U256 converts a big Int into a 256bit EVM number.