Closed EdinyangaOttoho closed 1 year ago
this is unrelated to Contracts UI.
the error suggests you are connected to an older node that doesn't expose the contracts runtime api (which is not the case for Aleph Zero Testnet) or that your @polkadot/api
version is too old perhaps. the bug is most likely in your code, i suggest posting a reproducible sample on Substrate StackExchange and get help from the community.
My polkadot.js version was a newer one and wasn't compatible with the current release (with an older version). What I rather did was downgrade it to 9.11.x and the rest was history.
Also, I modified my code to support Weights V2 which has refTimeLimit, proofSize, storageDepositLimit etc, which are the new fields needed for Aleph Zero Testnet ink! 4
Describe the bug When using the new ContractPromise for the Aleph Zero chain, I get an error:
To Reproduce Steps to reproduce the behavior:
Expected behavior It is supposed to create an instance of the contract that will allow for contract.tx and contract.query methods.
Screenshots
Desktop (please complete the following information):
Environment (please complete the following information where it makes sense):