Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Relayer execution - simple version
async execute(identityAddress, serviceContractAddress, value, data, signedDataHash) {
const identityContract = new ethers.Contract(identityAddress, IIdentityContract.abi, connection.wallet);
const transaction = await identityContract.execute(serviceContractAddress, value, data, signedDataHash);
return transaction.hash
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment