Skip to content

server/asset/eth: Fix unset contractVer in TokenBackend#13

Merged
peterzen merged 1 commit into
integration-1.1.0-rc3from
fix-eth-token-backend-contract-version
Jul 3, 2026
Merged

server/asset/eth: Fix unset contractVer in TokenBackend#13
peterzen merged 1 commit into
integration-1.1.0-rc3from
fix-eth-token-backend-contract-version

Conversation

@peterzen

@peterzen peterzen commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Same fix as #12, targeted at integration-1.1.0-rc3.

TokenBackend() never set AssetBackend.contractVer, causing spurious "wrong contract version" redeem errors for v1 tokens (e.g. usdc.polygon) and outright failure of gasless token redemptions.

TokenBackend() never set AssetBackend.contractVer, leaving it at the
zero value regardless of the token's actual contract version. That
field is read directly by the tx-not-found redeem fallback and by
relay coin construction, so v1 tokens (e.g. usdc.polygon) hit a
spurious "wrong contract version" error whenever a redeem tx wasn't
yet visible to the node, and gasless (relay) token redemptions failed
outright. Also zero-initializes the fallback coin's gas fields to
match relayBaseCoin and avoid a nil big.Int panic in FeeRate.
@peterzen
peterzen merged commit 32324bc into integration-1.1.0-rc3 Jul 3, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant