Closed Bargsteen closed 1 month ago
It seems I am unable to reproduce the issue. Supplying the following test modules, I get:
cis1_multi-debug.wasm.v0.txt cis2_multi-debug.wasm.v1.txt
(txt
, because otherwise GH won't let me attach them)
V0:
$ stack run -- module deploy cis1_multi-debug.wasm.v0
Error: Supplied file 'cis1_multi-debug.wasm.v0' cannot be parsed as a smart contract module to be deployed:
Failed reading: Maximum module size exceeded.
Empty call stack
.
V1:
$ stack run -- module deploy cis2_multi-debug.wasm.v1
Error: Supplied file 'cis2_multi-debug.wasm.v1' cannot be parsed as a smart contract module to be deployed:
Failed reading: Maximum module size exceeded.
Empty call stack
.
I thought it might have been fixed in the meantime, since the issue is old, so I traced the error message back to the this commit. The commit is older than this issue, but the issue is created by Jira, and as such, may be older than what GH let's on. I will therefore close this unless this can be reproduced.
Yea, I think this was fixed indirectly in the parsing of modules inside base at some point.
Description Concordium client does not check whether a module is above the size limit when deploying.
Steps to Reproduce
Expected Result Module is too big. The max size is [64, 512] Kib for [v0, v1] smart contract modules.
(The client will know the actual version, so it should write the correct size for it.)
Actual Result
concordium-client: user error (gRPC error: Deserialization error)
Versions
┆Issue is synchronized with this Jira Task by Unito