Skip to content

Instantly share code, notes, and snippets.

@michielmulders
Last active September 5, 2019 09:32
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 michielmulders/6f70b37eb0bbd607a7b7faff17c2566c to your computer and use it in GitHub Desktop.
Save michielmulders/6f70b37eb0bbd607a7b7faff17c2566c to your computer and use it in GitHub Desktop.
Lisk Custom Transaction Prepare Method
// Custom transaction: invoice_transaction.js
async prepare(store) {
await super.prepare(store);
}
// Base transaction implementation: base_transaction.ts
public async prepare(store: StateStorePrepare): Promise<void> {
await store.account.cache([
{
address: this.senderId,
},
]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment