fix: lint issues !minor
MODIFY
examples/node/approve-POS-ERC20-for-deposit.js
examples/node/approve-POS-ERC20-for-deposit.js
@@ -21,12 +21,13 @@ async function execute() {
return matic.approvePOSERC20ForDeposit(rootToken, amount, { from })
}
+// eslint-disable-next-line
async function executeRaw() {
- // eslint-disable-line
await matic.initialize()
const txParams = await matic.approvePOSERC20ForDeposit(rootToken, amount, { from, encodeAbi: true })
let serializedTx = utils.buildRawTransaction(txParams, config.PRIVATE_KEY)
return matic.web3Client.parentWeb3.eth.sendSignedTransaction(serializedTx)
}
-execute().then(console.log) // eslint-disable-line
+// eslint-disable-next-line
+execute().then(console.log)

MODIFY
examples/node/deposit-POS-ERC20-for-user.js
examples/node/deposit-POS-ERC20-for-user.js
@@ -22,8 +22,8 @@ async function execute() {
return matic.depositPOSERC20ForUser(rootToken, from, amount, { from, gasPrice: '10000000000' })
}
+// eslint-disable-next-line
async function executeRaw() {
- // eslint-disable-line
await matic.initialize()
let txParams = await matic.approvePOSERC20ForDeposit(rootToken, amount, { from, encodeAbi: true })
let serializedTx = utils.buildRawTransaction(txParams, config.PRIVATE_KEY)
@@ -34,4 +34,5 @@ async function executeRaw() {
return matic.web3Client.parentWeb3.eth.sendSignedTransaction(serializedTx)
}
-execute().then(console.log) // eslint-disable-line
+// eslint-disable-next-line
+execute().then(console.log)

MODIFY
examples/node/deposit-POS-ether-for-user.js
examples/node/deposit-POS-ether-for-user.js
@@ -20,4 +20,5 @@ async function execute() {
return matic.depositPOSEtherForUser(from, amount, { from, gasPrice: '10000000000' })
}
-execute().then(console.log) // eslint-disable-line
+// eslint-disable-next-line
+execute().then(console.log)

MODIFY
examples/node/exit-POS-ERC20.js
examples/node/exit-POS-ERC20.js
@@ -21,5 +21,6 @@ matic
from,
})
.then(res => {
- console.log(res) // eslint-disable-line
+ // eslint-disable-next-line
+ console.log(res)
})

fix: lint issues !minor