Skip to content

Commit c2bf82c

Browse files
fix(abstract-eth): fix verifyCoin method to validate native coin
TICKET: COIN-2577
1 parent 5a592c1 commit c2bf82c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/abstract-eth/src/abstractEthLikeNewCoins.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2230,7 +2230,8 @@ export abstract class AbstractEthLikeNewCoins extends AbstractEthLikeCoin {
22302230
* @returns {boolean}
22312231
*/
22322232
verifyCoin(txPrebuild: TransactionPrebuild): boolean {
2233-
return txPrebuild.coin === this.getChain();
2233+
const nativeCoin = this.getChain().split(':')[0];
2234+
return txPrebuild.coin === nativeCoin;
22342235
}
22352236

22362237
/**

0 commit comments

Comments
 (0)