Skip to content

(Regression) EVMC fails to validate contract via Sentinel #551

@jwasinger

Description

@jwasinger

Using the genesis provided here (which is the same as the ewasm testnet genesis for milestone 1), a transaction containing this wast fails to deploy:

(module
  (import "ethereum" "storageStore" (func $storageStore (param i32 i32)))
  (memory 1)
  (data (i32.const 0)  "\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") ;; Path                                                                                  
  (data (i32.const 32) "\cd\ab\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00") ;; Value                                                                                 
  (export "memory" (memory 0))
  (export "main" (func $main))
  (func $main

  )
)

The only output I get from Hera is:
"Sentinel has failed on contract. It is invalid."

Maybe this is intended (and the contract is in some way malformed according to wasm-chisel's validation specs), however it is completely opaque what the underlying reason for the failure is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions