go-ethereum/accounts
Daniel Liu b6f28effa9
accounts/abi: error when packing negative values in unsigned types #31790 (#1422)
This is an alternative approach to
https://github.com/ethereum/go-ethereum/pull/31607 , that doesn't break
backwards-compatibility with abigen.

Note that this does change the behavior of `Argument.Pack`: previously,
packing negative values for a `uint` parameter would cause them to be
represented in signed binary representation via two's complement. Now,
it will fail explicitly in this case.

However, I don't see a reason to support this functionality. The ABI
already explicitly supports signed integers. There's no reason that a
smart contract author would choose to store signed values in a `uint`
afaict.

---------

Co-authored-by: jwasinger <j-wasinger@hotmail.com>
Co-authored-by: MariusVanDerWijden <m.vanderwijden@live.de>
2025-09-03 15:48:44 +08:00
..
abi accounts/abi: error when packing negative values in unsigned types #31790 (#1422) 2025-09-03 15:48:44 +08:00
keystore cmd/abigen, accounts/abi/bind: implement abigen version 2 #31379 (#1416) 2025-09-03 15:47:12 +08:00
scwallet accounts: avoid duplicate regex compilation (#29943) 2025-01-24 16:54:12 +08:00
usbwallet accounts/usbwallet: full 32bit chainId support for Trezor #17439 (#1419) 2025-09-03 15:48:01 +08:00
accounts.go accounts: fix typo (#1413) 2025-09-03 15:44:49 +08:00
accounts_test.go accounts: run tests in parallel (#28544) 2025-01-24 16:54:12 +08:00
errors.go accounts: fix typo in comments (#24805) 2025-01-24 16:54:11 +08:00
hd.go accounts: fix typo in comments (#24805) 2025-01-24 16:54:11 +08:00
hd_test.go accounts: run tests in parallel (#28544) 2025-01-24 16:54:12 +08:00
manager.go accounts: properly close managed wallets when closing manager (#28710) 2025-01-24 16:54:12 +08:00
sort.go accounts: smartcard wallet without the dependency on libpcsclite (#19273) 2025-01-24 16:18:29 +08:00
url.go accounts: add unit tests for URL (#17182) 2025-01-24 16:18:28 +08:00
url_test.go accounts: add unit tests for URL (#17182) 2025-01-24 16:18:28 +08:00