update maticjs V1.0.0-beta.10
MODIFY
examples/node/package.json
examples/node/package.json
"author": "Sayli Patil <sayli@matic.network>",
"license": "ISC",
"dependencies": {
- "maticjs": "1.0.0-beta.9",
+ "maticjs": "1.0.0-beta.10",
"web3": "1.0.0-beta.34"
}
}

MODIFY
examples/node/process-exit-ERC721.js
examples/node/process-exit-ERC721.js
@@ -20,8 +20,9 @@ matic.wallet = config.PRIVATE_KEY // prefix with `0x`
// NOTE: Wait for NFT Challenge period tobe complete
matic.processExits(rootTokenAddress, {
from,
- onTransactionHash: () => {
+ onTransactionHash: (hash) => {
// action on Transaction success
// DEVNOTE: on sucessfull processExits withdrawManager.Withdraw event will receive
+ console.log(hash) // eslint-disable-line
},
})
\ No newline at end of file

MODIFY
examples/node/process-exit-ether.js
examples/node/process-exit-ether.js
@@ -20,8 +20,9 @@ matic.wallet = config.PRIVATE_KEY // prefix with `0x`
// NOTE: Wait for NFT Challenge period tobe complete
matic.processExits(rootTokenAddress, {
from,
- onTransactionHash: () => {
+ onTransactionHash: (hash) => {
// action on Transaction success
// DEVNOTE: on sucessfull processExits withdrawManager.Withdraw event will receive
+ console.log(hash) // eslint-disable-line
},
})
\ No newline at end of file

update maticjs V1.0.0-beta.10