fix custom eth transfer on matic
MODIFY
src/index.js
src/index.js
@@ -298,9 +298,10 @@ export default class Matic {
const from = options.from
// if matic chain, transfer normal WETH tokens
- if (!options.parent) {
+ if (!options.parent && !options.isCustomEth) {
return this.transferTokens(this._maticWethAddress, to, amount, options)
}
+
if (!options.parent && options.isCustomEth) {
web3Object = this._web3
}

fix custom eth transfer on matic