This forum is a read-only archive. Posting, replying and signing in are disabled.

Deploying a stateful smart contract with the JS SDK

casper

Struggling to find a complete example of how to do this, specifically what format/encoding the approval/clearState programs should be. I’ve tried reading them from the filesystem encoded as utf-8 → encoding as base64 → converting to a UInt8Array but I get an error when submitting the transaction saying:

check failed on ApprovalProgram: program version 35 greater than max supported version 5

Which is not the case. Both programs are using #pragma version 5

✔ Solved by fabrice in post #2