go-ethereum/core/vm/testdata/precompiles/fail-modexp.json
Nazarii Denha e09346ee20
feat(core/vm): revert modexp precompiled contract if input is not u256 (#361)
* Revert modexp precompiled contract if input is not u256

* bump version

* use specific error

* bump version

* tests

* bump version

* fix lint

* Update version.go

---------

Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
2023-06-28 10:32:26 -07:00

12 lines
No EOL
678 B
JSON

[
{
"Input": "000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020",
"ExpectedError": "modexp temporarily accepts only 32-byte (256-bit) inputs",
"Name": "too small input"
},
{
"Input": "000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000020",
"ExpectedError": "modexp temporarily accepts only 32-byte (256-bit) inputs",
"Name": "too big input"
}
]