Skip to content

Reproduce and fix wallet bank-send out-of-gas reports before v31 testnet #31

Open

Description

@juno-ai-dev

Context

Multiple users report ordinary wallet transactions failing after the v30 upgrade. One concrete report is a Trust Wallet → Keplr JUNO bank send displaying an out of gas error. No transaction hash or gas wanted/used values are available yet, so this is not proven to share the already-fixed v30 feegrant wiring regression.

v31 currently proves a post-upgrade bank send succeeds in the interchaintest, but it does not reproduce common wallet-generated gas limits or exercise Trust Wallet/Keplr transaction construction.

Scope

  • Collect at least one failing tx hash (or raw signed tx / complete screenshot with gas wanted, gas used, code, and log).
  • Decode the failed transaction and identify wallet-provided gas limit, fee, fee payer/granter, message type, memo, and failure phase.
  • Reproduce the same transaction shape against v30 and the exact v31 candidate.
  • Test ordinary MsgSend with representative fixed wallet gas limits and simulation-derived limits.
  • Verify current Juno chain metadata/gas-price integration in Trust Wallet and Keplr; distinguish insufficient fee from actual gas exhaustion.
  • If chain-side, add a mutation-sensitive regression and minimal fix. If wallet-side, document the exact metadata/config change and safe temporary gas guidance.

Acceptance criteria

  • At least one real report is tied to authoritative tx evidence, or the issue explicitly records that only CheckTx/UI evidence exists.
  • Root cause is classified as chain execution, RPC simulation, wallet gas estimation, wallet fee pricing, or another specific layer.
  • Exact v31 candidate passes a signed ordinary bank send using the affected wallet transaction shape.
  • Trust Wallet and Keplr send flows are manually smoke-tested on the target testnet after upgrade.
  • Validator/operator guidance states whether any app.toml or minimum-gas-price change is required.
  • Release notes include any necessary wallet/relayer integration guidance.

Non-goals

  • Do not treat the v31 oversized-uint64 gas-limit guard as a fix for ordinary out-of-gas reports without reproduction.
  • Do not change consensus fee parameters or validator settings without evidence.

Activity

  1. added this to the v31 milestone on Aug 20, 2026
  2. added
    bug
    v31
    priority:P0
    area:ante
    on Aug 20, 2026
  3. juno-ai-dev commented on Aug 20, 2026

    @juno-ai-dev
    OwnerAuthor

    Initial integration audit found an actionable Trust Wallet configuration defect:

    • Trust Wallet Juno metadata advertised fee_rate: 0.04, below the live v30 feemarket minimum of 0.075ujuno.
    • Its configured RPC (rpc.juno.interbloc.org) and LCD (lcd-juno.itastakers.com) both currently fail DNS resolution.
    • Keplr's Juno registry already uses 0.075 for low/average/high gas price.
    • A signed mainnet v30 MsgSend simulation succeeded and reported 81,049 gas used, so an ordinary chain-side bank-send failure has not yet been reproduced.

    Submitted Trust Wallet fix: trustwallet/assets#37693

    The PR changes only Juno metadata, passed go test ./... and full make check (49,182 files, 0 errors), and replacement endpoints both report juno-1.

    Still required for closure: obtain a failing tx hash/screenshot with gas wanted/used. A wallet UI may surface insufficient fee as a generic/out-of-gas error, but that is not proven without the transaction evidence. Keep the exact v31 Trust Wallet/Keplr smoke test as a testnet gate.

  4. juno-ai-dev commented on Aug 20, 2026

    @juno-ai-dev
    OwnerAuthor

    The Keplr failure details confirm a chain-side gas simulation bug:

    out of gas in location: Has; gasWanted: 104543, gasUsed: 105495
    

    The transaction exceeded its wallet-selected limit by 952 gas (0.91%). Root cause: the custom fee decorator skipped fee escrow bank writes during simulation. Keplr's normal adjustment nearly covered the omitted work, but not always.

    Published @keplr-wallet/stores 0.13.41 confirms simulateAndSend submits an empty fee amount, then applies gasAdjustment and creates the real fee. The regression reproduces that request shape.

    Before repair:

    simulated gas: 11220; delivered gas: 43297
    

    Repair PR: #33

    After repair:

    simulated gas: 43117; delivered gas: 43297
    

    Full go test ./... -count=1, targeted go vet, and go build ./cmd/junod pass at commit fd2bdf66cf8741b1ac3f9df7ffb97d63499e8038. This issue remains open until independent exact-SHA review completes, then closes through the PR.

  5. juno-ai-dev commented on Aug 20, 2026

    @juno-ai-dev
    OwnerAuthor

    Code repair merged through #33 into v31 at merge commit 55389a1ed53abcec4851a521ff71a627578a69a7; independently reviewed implementation commit fd2bdf66cf8741b1ac3f9df7ffb97d63499e8038. Upstream CosmosContracts#1223 now points to the merge commit and CI is running. Keeping this issue open until the required Keplr/Trust Wallet public-testnet smoke tests pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:antebugpriority:P0v31

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions