Skip to content

Instantly share code, notes, and snippets.

@Perseverance
Last active October 2, 2018 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Perseverance/6ffddfd5cd2e9583d6f2dcf8a8e6e600 to your computer and use it in GitHub Desktop.
Save Perseverance/6ffddfd5cd2e9583d6f2dcf8a8e6e600 to your computer and use it in GitHub Desktop.
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