Skip to content

Commit dc644eb

Browse files
authored
Merge pull request #716 from ahsan-javaiid/fix/rootstock-swaps
Enable `Changelly` swaps on Rootstock
2 parents 8c4474d + f1f4567 commit dc644eb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages
    • extension/src/providers/ethereum/libs/transaction
    • swap/src/providers/changelly

packages/extension/src/providers/ethereum/libs/transaction/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Transaction {
105105
feeHistory: {} as FeeHistoryResult,
106106
}));
107107
// Gets the number of transactions that they will have sent by the next pending block
108-
const nonce = await this.web3.getTransactionCount(this.tx.from, 'pending');
108+
const nonce = await this.web3.getTransactionCount(this.tx.from.toLowerCase(), 'pending'); // web3 rejects rootstock checksum addr so use lowercase addr
109109
if (!isFeeMarketNetwork) {
110110
// Legacy transaction
111111
const gasPrice = await this.web3.getGasPrice();

packages/swap/src/providers/changelly/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class Changelly extends ProviderClass {
133133

134134
if (
135135
cur.enabledFrom &&
136-
cur.fixRateEnabled &&
136+
(cur.fixRateEnabled || cur.protocol === "RBTC") && // Allow RBTC as native currency for gas fees and swaps
137137
cur.token &&
138138
changellyToNetwork[cur.blockchain] === this.network
139139
) {

0 commit comments

Comments
 (0)