hyperweb-io / hyperweb-io/telescope
Broadcasting transaction failed with code 4 (codespace: sdk). Log: signature verification failed; please verify account number (37), sequence (4) and chain-id (lava-testnet-2): unauthorized
- Dominant language
- TypeScript
- Stars
- 154
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Description
we are encountering this on every transaction on lava network
we recently upgrade to cosmos 47 but i can confirm this also happened on 46
snippet of the code causing this issue:
```typescript
let wallet = await Secp256k1Wallet.fromKey(fromHex(privKey), "lava@")
const [firstAccount] = await wallet.getAccounts();
console.log(firstAccount)
let signingClient = await getSigningLavanetClient({
rpcEndpoint: publicRpc,
signer: wallet,
})
const msg = lavanet.lava.subscription.MessageComposer.withTypeUrl.buy({
creator: firstAccount.address,
consumer: firstAccount.address,
index: "explorer",
duration: new Long(1), /* in months */
})
const fee = {
amount: [{ amount: "1", denom: "ulava" }], // Replace with the desired fee amount and token denomination
gas: "50000000", // Replace with the desired gas limit
}
await signingClient.signAndBroadcast(firstAccount.address,[msg], fee, "Buying subscription on Lava blockchain!")
```
Results:
```log
BroadcastTxError: Broadcasting transaction failed with code 4 (codespace: sdk). Log: signature verification failed; please verify account number (37), sequence (4) and chain-id (lava-staging-4): unauthorized
at SigningStargateClient.broadcastTx (/home/user/telescope-test/lavajs/node_modules/@cosmjs/stargate/src/stargateclient.ts:449:9)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async run (/home/user/telescope-test/lavajs/test.ts:45:3) {
code: 4,
codespace: 'sdk',
log: 'signature verification failed; please verify account number (37), sequence (4) and chain-id (lava-staging-4): unauthorized'
}```
Important to note I've also tried other message construction options which used to work for cosmos v45.11 and stopped working for the lava stargate client on the latest release.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.