You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CodeRejected: module imports a non-existent function #243
Error while deploying contracts that contains methods that deletes storage states. That includes operation like Mapping.delete() that call env().clearContractStroage().
Temporary Fix: -
Commented out the new seal_clear_storage from __unstable__.ts, that overshadows the old seal_clear_storage from seal0.ts
@yjhmelody
Just wanted to bump this since this is a critical bug. The ask! v0.4.0 cannot be used with new pallet-contracts (polkadot-v0.9.32 or higher) due to: -
AS always export start function (for init stdlib) which is now illegal in contracts (new AS supports --exportStart <some-init-name> which can be used to export start function as either deploy() or call(). Not sure how will that work)
I believe it should be top priority as without fixing this ask! is essentially broken for all major parachains.
AS always export start function (for init stdlib) which is now illegal in contracts (new AS supports --exportStart which can be used to export start function as either deploy() or call(). Not sure how will that work)
Activity
yjhmelody commentedon Jan 30, 2023
found an unexpected start function with index 58this error means that wasm code exported astartfunction which is illegal in contractashutoshvarma commentedon Feb 7, 2023
@yjhmelody did you get a chance to take a look at the fix (or the one suggested in this issue ).
ashutoshvarma commentedon Mar 2, 2023
@yjhmelody
Just wanted to bump this since this is a critical bug. The ask! v0.4.0 cannot be used with new
pallet-contracts(polkadot-v0.9.32or higher) due to: -old host functions in, fixed in feat: update contract runtime to polkadot-v0.9.39 #268__unstable__that are stabilized in newpallet-contractsversionsstartfunction (for init stdlib) which is now illegal in contracts (new AS supports--exportStart <some-init-name>which can be used to export start function as eitherdeploy()orcall(). Not sure how will that work)I believe it should be top priority as without fixing this ask! is essentially broken for all major parachains.
yjhmelody commentedon Mar 6, 2023
Ok, will be updated
yjhmelody commentedon Mar 6, 2023
That's not true. You should config it such as:
or inherent this config:
I did not see
startfunction when I did the above.yjhmelody commentedon Mar 6, 2023
Oh, I misunderstood, indeed, I need to study further
yjhmelody commentedon Mar 16, 2023
Related issues about
startfunctions:_startfunction AssemblyScript/assemblyscript#2672ensure_no_starttostartparitytech/polkadot-sdk#116