Skip to content

Issue in providing cw4_stake.wasm contract values for initiating #878

@golnarmordadi

Description

@golnarmordadi

Hi, I'm facing with issue for prepare denom for initiating cw4_stake.wasm contract?

These are properties which are need for initiaing:

pub struct InstantiateMsg {
    /// denom of the token to stake
    pub denom: Denom,
    pub tokens_per_weight: Uint128,
    pub min_bond: Uint128,
    pub unbonding_period: Duration,
}

I've provided blow INIT but I'm getting error for providing denom value.

INIT='{"denom":"native","tokens_per_weight":1,"min_bond":1,"unbonding_period":{"time":3600}}'

My denum is udmotus but when I use it I get error as well.

Error:
Error: rpc error: code = InvalidArgument desc = failed to execute message; message index: 0: Error parsing into type cw4_stake::msg::InstantiateMsg: Invalid type: instantiate wasm contract failed: invalid request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions