0

Rust version:rustc 1.77.0-nightly (3d0e6bed6 2023-12-21)

Zombienet-linux-x64 version:1.3.87

Polkadot SDK version:polkadot 1.5.0-a3dc2f15f23


I have created a simple Cumulus Parachain based in the new Polkadot SDK monorepo.

Which I am testing using a zombienet network specification.

The zombienet is created with no problem.

enter image description here

I am able to do transfer tokens between accounts.

enter image description here

But I am not able to upload a smart contract (I am using the flipper example)

From the Substrate Contracts UI

Callers account enter image description here

enter image description here

enter image description here

From the Polkadot JS with the sudo command

Alice Sudo key -local_testnet_config

Alice Sudo key -development_config

Alice tokens

enter image description here

Alice transaction

enter image description here

enter image description here

enter image description here

Probably I am missing something silly.

Nevertheless, would be nice to know why this code have this behaviour.

1 Answer 1

0

In order to fix this error the MaxHolds(The maximum number of holds that can exist on an account at any time) in the "impl pallet_balances::Config for Runtime" needs to be bigger then 1.

impl pallet_balances::Config for Runtime {
    (...)
    type MaxHolds = ConstU32<1>;
    (...)
}

Cheers,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.