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

Update cw3-flex-multisig/helpers.ts to work with cosmjs/cli v0.26 and base-helpers.ts #550

Merged
merged 6 commits into from
Nov 19, 2021

Conversation

findolor
Copy link
Contributor

@findolor findolor commented Nov 16, 2021

In the examples, updated code works until we instantiate the contract.

Based on the contract schema if we give initMsg as

const initMsg = {
  group_addr: addr,
  threshold: {
    absolute_count: {
      weight: 5
    }
  },
  max_voting_period: {
    time: 3600
  }
}

it'll throw error saying Error parsing into type u64: EOF while parsing a JSON value.: instantiate wasm contract failed

Can't seem to get around this issue, would love to get some help on this!

Edit: Used cw4-group contract addr as the group_addr in initMsg to make it work.
https://github.com/CosmWasm/cw-plus/tree/main/contracts/cw3-flex-multisig#instantiation

@orkunkl orkunkl self-requested a review November 16, 2021 08:04
@orkunkl orkunkl merged commit 540634d into CosmWasm:main Nov 19, 2021
@findolor findolor deleted the update-cw3-helper branch November 19, 2021 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants