Open matevz opened 1 year ago
Does this test assure this has been fixed at some point?:
I also thought the wrapped Signer was working.
sapphire-paratime/integrations/hardhat/test/protocol.ts
as I see, this test is only in v2. v2 doesn't have signed view calls?
If you want to switch the signer of a wrapped object, for example:
or more explicitly:
(see https://github.com/oasisprotocol/demo-quiz/blob/3c6c15038f75fc96bf706a7a0d5ecdbca3b6f46d/backend/test/Quiz.ts#L87-L89 for live example).
Then when calling a signed view call
await myContract.foo();
, the query fails:I tracked down the error in the web3 gateway logs and Sapphire runtime complains:
Tested using
sapphire-localnet 2024-05-28-git37b7166 (oasis-core: 24.0-gitfb49717, sapphire-paratime: 0.7.3-testnet, oasis-web3-gateway: 5.1.0)
. Running it on Sapphire Testnet also fails.