new: example for different burnEventSig
MODIFY
examples/package-lock.json
examples/package-lock.json
}
},
"@maticnetwork/maticjs": {
- "version": "3.1.0",
- "resolved": "https://registry.npmjs.org/@maticnetwork/maticjs/-/maticjs-3.1.0.tgz",
- "integrity": "sha512-4xMItlN+/VS3CXIxkE29Y7gZS7Llc5Rj2vgcXj4PMy3hdNN5YhXWU9sPbIZEEnoX4T0U881wAxjqHqjvmU5m/w==",
+ "version": "3.2.3",
+ "resolved": "https://registry.npmjs.org/@maticnetwork/maticjs/-/maticjs-3.2.3.tgz",
+ "integrity": "sha512-qYXTBH3/vkhPnMQxLiyxFBCk4/mLDmOhmsoKaEv306p6V7MDGUtx6n4pcp43GTiKZ+KRJxKvRCJPzJdqFW2PGg==",
"requires": {
"eth-sig-util": "^2.5.3",
"ethereumjs-block": "2.2.0",
"integrity": "sha512-Ntyt4AIXyaLIuMHF6IOoTakB3K+RWxwtsHNRxllEoA6vPwP9o4866g6YWDLUdnucilZhmkxiHwHr11gAENw+QA=="
},
"node-fetch": {
- "version": "2.6.6",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.6.tgz",
- "integrity": "sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA==",
+ "version": "2.6.7",
+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
+ "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
"requires": {
"whatwg-url": "^5.0.0"
}

MODIFY
examples/package.json
examples/package.json
"author": "",
"license": "ISC",
"dependencies": {
- "@maticnetwork/maticjs": "^3.1.0",
+ "@maticnetwork/maticjs": "^3.2.3",
"@maticnetwork/maticjs-web3": "^0.8.0",
"@truffle/hdwallet-provider": "^1.5.1-alpha.1",
"dotenv": "^10.0.0"

MODIFY
examples/pos/erc20/withdraw_exit.js
examples/pos/erc20/withdraw_exit.js
@@ -7,6 +7,13 @@ const execute = async () => {
const result = await erc20Token.withdrawExit('0xb005d8db45f33836c422ee18286fa8ebe49b4ec7b9930e673d85ecd081cc3b8e');
+ /* If burn event Signature is different for the particular transaction. */
+ // const burnEventSignature = "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
+ // const result = await erc20Token.withdrawExit('0x911403585328c9e1d8fa3354ed78b51772684bf755dda19d2658247924af473d', {
+ // burnEventSignature: burnEventSignature,
+ // });
+ // console.log(result)
+
const txHash = await result.getTransactionHash();
console.log("txHash", txHash);
const receipt = await result.getReceipt();

new: example for different burnEventSig