Created
September 5, 2019 09:48
-
-
Save michielmulders/179604b0befd78a7fdf5b3f3322f7605 to your computer and use it in GitHub Desktop.
Lisk Bills Payment Transaction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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