Skip to content

Commit

Permalink
fix: ethereumjs-util
Browse files Browse the repository at this point in the history
  • Loading branch information
nitinmittal23 committed Aug 6, 2024
1 parent 7077e83 commit 0455bde
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions test/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { setProofApi, POSClient, ZkEvmClient, use } = require("@maticnetwork/mati
const { Web3ClientPlugin } = require("@maticnetwork/maticjs-web3");

const HDWalletProvider = require("@truffle/hdwallet-provider");
const { toBuffer } = require("ethereumjs-util");
use(Web3ClientPlugin);
const from = user1.address;
const to = user2.address;
Expand Down Expand Up @@ -41,10 +40,16 @@ const execute = async () => {
const mumbaiERC721Token = client.erc721(pos.child.erc721);
const goerliERC1155Token = client.erc1155(pos.parent.erc1155, true);
const mumbaiERC1155Token = client.erc1155(pos.child.erc1155);
const tx = await client.depositEther(1, "0xD7Fbe63Db5201f71482Fa47ecC4Be5e5B125eF07", {
returnTransaction: true
})
console.log(tx)

const tx = await goerliERC20Token.withdrawExit(
"0xa14f1037b4b9bbe89edec96e523bbfa285465cf33f372dd8a57f1ecb6e4a24c1",
// { returnTransaction: true}
)
console.log("hash", await tx.getTransactionHash());
// const tx = await client.depositEther(1, "0xD7Fbe63Db5201f71482Fa47ecC4Be5e5B125eF07", {
// returnTransaction: true
// })
// console.log(tx)
// const tx = await client.depositEtherWithGas(
// 1, "0xD7Fbe63Db5201f71482Fa47ecC4Be5e5B125eF07",
// 1000000000000000, "0xd9627aa4000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000038d7ea4c68000000000000000000000000000000000000000000000000000286556c0f059561200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee0000000000000000000000007d1afa7b718fb893db30a3abc0cfc608aacfebb0869584cd000000000000000000000000dea904157bd08dae959a04dc7e5924b6e3cfe450000000000000000000000000000000007551d94e15a6d9373f715de5b9f4080b", {
Expand Down
2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.spec.js",
"scripts": {
"link:lib": "npm link @maticnetwork/maticjs",
"debug": "dotenv node debug.js",
"debug": "node debug.js",
"link:lib:debug": "npm run link:lib && npm run debug"
},
"author": "",
Expand Down

0 comments on commit 0455bde

Please sign in to comment.