Skip to content

Instantly share code, notes, and snippets.

@michielmulders
Created September 5, 2019 09:48
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/179604b0befd78a7fdf5b3f3322f7605 to your computer and use it in GitHub Desktop.
Save michielmulders/179604b0befd78a7fdf5b3f3322f7605 to your computer and use it in GitHub Desktop.
Lisk Bills Payment Transaction
async prepare(store) {
await super.prepare(store);
await store.transaction.cache([
{
id: this.asset.data,
},
]);
}
applyAsset(store) {
const errors = super.applyAsset(store);
const transaction = store.transaction.find(
transaction => transaction.id === this.asset.data
); // Find related invoice in transactions for invoiceID
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment