Closed dssei closed 8 months ago
On sei-js side, when transaction broadcast fails, up until recently we were observing error like the following
BroadcastTxError: Broadcasting transaction failed with code 10 (codespace: sdk). Log: at SigningStargateClient.broadcastTx (/Users/bryantran/code/sei/nft/script/node_modules/@cosmjs/stargate/build/stargateclient.js:267:35) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async main (file:///Users/bryantran/code/sei/nft/script/evm/test.js:17:18) { code: 10, codespace: 'sdk', log: '' }
With recent change https://github.com/sei-protocol/sei-tendermint/pull/201, the log looks like.
log: '[{"log":"insufficient fees; got: 1200usei required: 12000usei: insufficient fee"}]'
We would like to tweak formatting a bit (from json, to a simple string) , so the output of the log is more like
log: 'insufficient fees; got: 1200usei required: 12000usei: insufficient fee'
With full error message looking like
BroadcastTxError: Broadcasting transaction failed with code 13 (codespace: sdk). Log: insufficient fees; got: 1200usei required: 12000usei: insufficient fee at SigningStargateClient.broadcastTxSync (/Users/denyssinyakov/repos/experimental/cosmos-test/node_modules/@cosmjs/stargate/build/stargateclient.js:290:35) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async SigningStargateClient.broadcastTx (/Users/denyssinyakov/repos/experimental/cosmos-test/node_modules/@cosmjs/stargate/build/stargateclient.js:267:31) { code: 13, codespace: 'sdk', log: 'insufficient fees; got: 1200usei required: 12000usei: insufficient fee' }
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 57.89%. Comparing base (a84cd86) to head (72e28cf).
a84cd86
72e28cf
Describe your changes and provide context
On sei-js side, when transaction broadcast fails, up until recently we were observing error like the following
With recent change https://github.com/sei-protocol/sei-tendermint/pull/201, the log looks like.
We would like to tweak formatting a bit (from json, to a simple string) , so the output of the log is more like
With full error message looking like
Testing performed to validate your change