Skip to content

Conversation

@HimanshuS2212
Copy link
Contributor

Ticket: COIN-6014

TICKET: COIN-6014

});
});

describe('OpBNB Coin (topbnb)', function () {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't duplicate same tests for a new coin, make existing tests work run for all coins

};

// opBNB Testnet specific mock data helpers (chainId: 5611)
export function getOpBNBTxListRequest(address: string) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probbaly can use existing data

Comment on lines +430 to +449
account(
'2b5c52f8-0d0c-4a17-8052-d56373f5d264',
'topbnb',
'opBNB Testnet',
Networks.test.opbnb,
18,
UnderlyingAsset.OPBNB,
BaseUnit.ETH,
[...ETH_FEATURES, CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA, CoinFeature.EIP1559]
),
account(
'1588f6da-8e43-4535-8e1c-25e53788437b',
'opbnb',
'opBNB Mainnet',
Networks.main.opbnb,
18,
UnderlyingAsset.OPBNB,
BaseUnit.ETH,
[...ETH_FEATURES, CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA, CoinFeature.EIP1559]
),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to add it here ?
can we not build txns without this ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required to enable EIP-1559 transaction support and the tests use getCommon(coin) which calls coins.get(coin) to fetch the network configuration (chainId, name). The coin must be registered in statics for this to work.

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.

3 participants