It causes problems that we can't query storage in an iterator-based way, e.g. iter_values(), iter_prefix().
Why does it work in tests?
Because the litentry/pallets is located in the project root where sp-io is not patched, otherwise it wouldn't have compiled as the sgx sp-io doesn't even have TestExternalities.
Currently
next_key
is not implemented for sgxsp-io
crate: https://github.com/litentry/tee-worker/blob/63e7518a37a23644377691b0c8d18fa8c13fb8e3/core-primitives/substrate-sgx/sp-io/src/lib.rs#L254-L257It causes problems that we can't query storage in an iterator-based way, e.g.
iter_values()
,iter_prefix()
.Why does it work in tests? Because the
litentry/pallets
is located in the project root wheresp-io
is not patched, otherwise it wouldn't have compiled as the sgx sp-io doesn't even have TestExternalities.We need to: