cosmos-client / cosmos-client-ts

Apache License 2.0
36 stars 17 forks source link

unable to resolve type URL : tx parse error #104

Open sera-korbit opened 2 years ago

sera-korbit commented 2 years ago

Hi! I have some problem with broadcasting tx. When I broadcasted Tx, I got Error "Broadcasting transaction failed with code2 (codespace : sdk) Log: invalid length; proto: invalid field number : tx parse error". What is the cause of this and do you have any proper way to solve this?

// broadcast
const res = await cosmosclient.rest.tx.broadcastTx(sdk, {
  tx_bytes: txBuilder.txBytes(),
  mode: rest.tx.BroadcastTxMode.Block,
});
console.log(res);
kimurayu45z commented 1 year ago

Sorry for late reply. I answered same question in Discord so I forgot to reply here. Could you give me the detail of your tx object? I also can answer in Discord