Skip to content

Commit 987fe03

Browse files
Denis BoldyrevLex Peterson
Denis Boldyrev
authored and
Lex Peterson
committed
Make "getTokenInfo" available outside for ethereum wallets
1 parent a07bb61 commit 987fe03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ethereum/ethEngine.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class EthereumEngine extends CurrencyEngine {
6363
ethNetwork: EthereumNetwork
6464
lastEstimatedGasLimit: LastEstimatedGasLimit
6565
fetchCors: EdgeFetchFunction
66+
otherMethods: Object
6667

6768
constructor(
6869
currencyPlugin: EthereumPlugin,
@@ -89,6 +90,10 @@ export class EthereumEngine extends CurrencyEngine {
8990
gasLimit: ''
9091
}
9192
this.fetchCors = fetchCors
93+
94+
this.otherMethods = {
95+
getTokenInfo: this.getTokenInfo.bind(this)
96+
}
9297
}
9398

9499
updateBalance(tk: string, balance: string) {

0 commit comments

Comments
 (0)