hyperweb-io / hyperweb-io/ts-codegen

Message Composer Msg Conflict

Aperta
#114 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
126
Fork
31
Merge medio
19m
PR unite (30g)
2

Descrizione

```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`

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Locate the TypeScript message composer implementation containing the receive method shown in the issue. Rename the local message object to _msg so it does not conflict with the destructured msg parameter, then verify that the generated TypeScript compiles successfully.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
typescript
Ambito
api
Tipo di issue
Bug
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.