From bf8ea8ece04314a5fcf57f5775bb9642690cda99 Mon Sep 17 00:00:00 2001 From: Jared Wasinger Date: Fri, 9 May 2025 14:55:38 +0800 Subject: [PATCH] comment tweaks --- accounts/abi/pack_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accounts/abi/pack_test.go b/accounts/abi/pack_test.go index 72f372d40d..0de1c10cf5 100644 --- a/accounts/abi/pack_test.go +++ b/accounts/abi/pack_test.go @@ -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) {