comment tweaks

This commit is contained in:
Jared Wasinger 2025-05-09 14:55:38 +08:00
parent fce0d3e846
commit bf8ea8ece0

View file

@ -178,12 +178,11 @@ func TestMethodPack(t *testing.T) {
t.Errorf("expected %x got %x", sig, packed) 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)) _, err = abi.Pack("send", big.NewInt(-1))
if err == nil { if err == nil {
t.Fatal("expected error when trying to pack negative big.Int into uint256 value") 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) { func TestPackNumber(t *testing.T) {