⚑Executing the transaction

This is pretty straightforward, we can now send the transaction using all the parameters we previously generated.

    const preCompileContract = new ethers.Contract(callPermitAddress, callPermitABI, deployerSigner)
    let tx = await preCompileContract.dispatch(
      finalCall.message.from,
      finalCall.message.to,
      finalCall.message.value,
      finalCall.message.data,
      finalCall.message.gaslimit,
      finalCall.message.deadline,
      finalCall.signature.v,
      finalCall.signature.r,
      finalCall.signature.s)
    let result = await tx.wait()

Last updated