mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-26 06:36:43 +00:00
comment tweaks
This commit is contained in:
parent
fce0d3e846
commit
bf8ea8ece0
1 changed files with 1 additions and 2 deletions
|
|
@ -178,12 +178,11 @@ func TestMethodPack(t *testing.T) {
|
|||
t.Errorf("expected %x got %x", sig, packed)
|
||||
}
|
||||
|
||||
// test that we can't pack a negative value for a parameter that is specified as a uint
|
||||
_, err = abi.Pack("send", big.NewInt(-1))
|
||||
if err == nil {
|
||||
t.Fatal("expected error when trying to pack negative big.Int into uint256 value")
|
||||
}
|
||||
|
||||
// TODO: examine what happens if we supply a negative non-big int to a method expect smaller uint val
|
||||
}
|
||||
|
||||
func TestPackNumber(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue