substrate-contracts-node icon indicating copy to clipboard operation
substrate-contracts-node copied to clipboard

get_storage returns empty value for valid key

Open extraymond opened this issue 3 years ago • 0 comments

When using substrate-contracts-node, when try to read the raw storage value using pallet_contracts::rpc::get_storage(addr, key), it always returns None, compared to using my custom runtime, it reflected the results correctly.

I tried two different routes just to be sure:

  1. using polkadot.js/apps and query the first layout item for a deployed contract with get_strage
  2. using subxt to call rpc directly

Both cases returns incorrect value for substrate-contracts-node.

extraymond avatar Aug 26 '22 10:08 extraymond