ref-fvm icon indicating copy to clipboard operation
ref-fvm copied to clipboard

FEVM | Eth Compliance Test | 57-stZeroKnowledge2 | use-case Failures

Open shamb0 opened this issue 2 years ago • 5 comments

Following use-cases are failed.

  • Hit with error EVM_CONTRACT_BAD_JUMPDEST (ExitCode::39), All the test cases are failed with Precompile failed: error EcErr(InvalidEncoding). Have to confirm is testsuite is valid for fevm context ?.
Test ID Use-Case
TID-57-001 ecadd_0-0_0-0_21000_0
TID-57-004 ecadd_0-0_0-0_21000_128
TID-57-005 ecadd_0-0_0-0_21000_192
TID-57-002 ecadd_0-0_0-0_21000_64
TID-57-003 ecadd_0-0_0-0_21000_80
TID-57-006 ecadd_0-0_0-0_25000_0
TID-57-009 ecadd_0-0_0-0_25000_128
TID-57-010 ecadd_0-0_0-0_25000_192
TID-57-007 ecadd_0-0_0-0_25000_64
TID-57-008 ecadd_0-0_0-0_25000_80
TID-57-015 ecadd_0-0_1-3_21000_128
TID-57-016 ecadd_0-0_1-3_25000_128
TID-57-017 ecadd_0-3_1-2_21000_128
TID-57-018 ecadd_0-3_1-2_25000_128

shamb0 avatar Jan 30 '23 16:01 shamb0

Rerun the test vector with most recent code, and everything fails with OutOfGas (exit code 7).

vyzo avatar Feb 10 '23 16:02 vyzo

Which I would say is unsurprising given that the messages are applied with the gas limit from the txn -- that is eth gas, of course it will run out of gas!

vyzo avatar Feb 10 '23 16:02 vyzo

I changed the gas allotment to use the full block unconditionally in the code.

vyzo avatar Feb 10 '23 17:02 vyzo

Still fails, but with a different error from the precompile:

[WARN] Precompile failed: error EcErr(NotMember)

vyzo avatar Feb 10 '23 17:02 vyzo

I think we should look at this more closely, bug possibility.

vyzo avatar Feb 10 '23 18:02 vyzo