hyperweb-io / hyperweb-io/ts-codegen

Message Composer Msg Conflict

Open
#114 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
126
Forks
31
Avg merge
19m
Merged PRs (30d)
2

Description

```ts
receive = ({
amount,
msg,
sender
}: {
amount: Uint128;
msg: Binary;
sender: string;
}, _funds?: Coin[]): MsgExecuteContractEncodeObject => {
const msg = {
receive: {
amount,
msg,
sender
}
};
return {
typeUrl: "/cosmwasm.wasm.v1.MsgExecuteContract",
value: MsgExecuteContract.fromPartial({
sender: this.sender,
contract: this.contractAddress,
msg: toUtf8(JSON.stringify(msg)),
funds: _funds
})
};
};
```

Should call the local variable `_msg`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.