Skip to content

Step 2 of Upload and Instantiate Contract tries to read non-existent flags.bits #574

@rbochenek

Description

@rbochenek

I am running two solochains based on different versions of Polkadot-SDK.
First one is based on Polkadot-SDK release-polkadot-v1.1.0 branch with pallet-contracts version 4.0.0-dev.
Second one is a much newer Polkadot-SDK stable2409 branch with pallet-contracts version 38.0.0.
Both are configured similiarly. I can upload, instiantiate and call contracts on both without any problems when using Polkadot JS Apps or cargo contract.

contacts-ui on the other hand doesn't work with the newer chain.
The problem occurs at Step 2 of Upload and Instantiate Contract:

Image

Image

It fails here:

const isRevert = flags.bits.toNumber();

It turns out the data returned from api.call.contractsApi.instantiate() differs between the chains.
Here's a comparison of result.result.asOk.result.flags.
Working polkadot-v1.1.0 chain:

Image

Non-working polkadot-stable2409 chain:

Image

Would appreciate any pointers on this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions