4

_fallback method panics with the following error when attempting to execute a delegate call to the diamond facet contract:

2023-05-20 16:16:58.992 DEBUG tokio-runtime-worker runtime::contracts: Execution finished with debug buffer: panicked at 'could not properly decode storage entry', liquid-staking/contracts/staker_facet_v1/src/lib.rs:9:5
panicked at 'delegate call to Some(Hash([46, 17, 244, 97, 239, 143, 12, 230, 177, 213, 29, 31, 98, 41, 120, 162, 191, 252, 0, 246, 27, 27, 11, 181, 169, 178, 84, 85, 242, 153, 54, 95])) failed due to CalleeTrapped', openbrush-contracts-4c291f7aab99c37d/13e82f3/contracts/src/upgradeability/diamond/diamond.rs:193:35

I am executing a contract query with the following arguments utilizing PolkadotJS which calls the facet contract ink message pausable::paused.

0

1 Answer 1

2

There is an issue with delegate call (described in OpenBrush repo): https://github.com/Brushfam/openbrush-contracts/issues/36

1
  • Do you know of any examples that implement one of these solutions as described in the issue? There are not exactly straight forward.
    – Snowmead
    Commented May 22, 2023 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.