Skip to content

Commit 0ed8e34

Browse files
fix(abstract-eth): fix verifyCoin method to validate native coin
2 parents 5a592c1 + c2bf82c commit 0ed8e34

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)