0

I am trying to do withdrawal using Matic Plasma. but Getting error : Error: Burn transaction has not been checkpointed as yet Here is my code :

const burnTransaction = async (plasmaClient, txHash) => {
  try {
    const erc20TokenParent = plasmaClient.erc20(tokenParent, true);

    const burnResult = await erc20TokenParent.withdrawConfirm(txHash);
    const burnTxHash = await burnResult.getTransactionHash();
    const burnTxReceipt = await burnResult.getReceipt();
    console.log("Burn Receipt => ", burnTxReceipt);
    console.log("Hash => ", burnTxHash);

    const exitResult = await erc20TokenParent.withdrawExit();
    const finalTxHash = await exitResult.getTransactionHash();
    const finalTxReceipt = await exitResult.getReceipt();
    console.log("Final Transaction Receipt => ", finalTxReceipt);
    console.log("Hash => ", finalTxHash);
  } catch (error) {
    console.log(error);
  }
};


Here I am also sharing github discussion link: https://github.com/maticnetwork/matic.js/discussions/357

AKX
  • 152,115
  • 15
  • 115
  • 172

0 Answers0