Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure when interacting with chains that use older pallet-contracts versions #1563

Closed
cmichi opened this issue Mar 25, 2024 · 1 comment · Fixed by #1564
Closed

Failure when interacting with chains that use older pallet-contracts versions #1563

cmichi opened this issue Mar 25, 2024 · 1 comment · Fixed by #1564
Assignees
Labels
bug Something isn't working

Comments

@cmichi
Copy link
Collaborator

cmichi commented Mar 25, 2024

I'm trying to instantiate flipper from ink-examples on either Pendulum or Ternoa.

cargo-contract fails with an error due to issues with metadata. I believe those chains use an older version of pallet-contracts.

➜  flipper git:(heads/v5.x.x) ✗ cargo contract instantiate --url wss://pendulum-rpc.dwellir.com --args true --suri //Alice -x
Warning: This chain does not yet support checking for compatibility of your contract types (https://use.ink/faq#type-comparison).
 Dry-running new (skip with --skip-dry-run)
ERROR: Could not decode `ContractResult::events`:
	Could not decode variant byte for `Option`:
		Not enough data to fill buffer


Caused by:
    0: Could not decode variant byte for `Option`:
       	Not enough data to fill buffer
       
    1: Not enough data to fill buffer


➜  flipper git:(heads/v5.x.x) ✗ cargo contract instantiate --url wss://mainnet.ternoa.network --args true --suri //Alice -x
Warning: This chain does not yet support checking for compatibility of your contract types (https://use.ink/faq#type-comparison).
 Dry-running new (skip with --skip-dry-run)
ERROR: Could not decode `ContractResult::events`:
	Could not decode variant byte for `Option`:
		Not enough data to fill buffer


Caused by:
    0: Could not decode variant byte for `Option`:
       	Not enough data to fill buffer
       
    1: Not enough data to fill buffer
@cmichi cmichi added the bug Something isn't working label Mar 25, 2024
@smiasojed
Copy link
Collaborator

The events: Option<Vec<EventRecord>> member variable of the ContractResult struct is missing in the pallet_contracts_primitives version 7.0.0 crate used in pendulum chain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants