Last active
September 5, 2019 09:32
-
-
Save michielmulders/6f70b37eb0bbd607a7b7faff17c2566c to your computer and use it in GitHub Desktop.
Lisk Custom Transaction Prepare Method
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
// 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