Skip to content

Instantly share code, notes, and snippets.

@corbifex
Last active Jul 22, 2020
Embed
What would you like to do?
Base Proposal transaction LCU Dao
const {proposal, errors} = await this.applyProposalAsset(store);
errors.map(err => {
errs.push(err);
});
proposal.publicKey = this.getProposalPublicKey();
proposal.asset = {
...proposal.asset,
options: proposal.asset.options || {},
votes: [],
status: proposal.asset.status || 1,
addressBook: this.asset.addressBook,
nonce: addressBook.asset.nonce,
start: store.chain.lastBlockHeader.timestamp,
}
addressBook.asset = {
...addressBook.asset,
nonce: addressBook.asset.nonce + 1,
};
store.account.set(addressBook.address, addressBook);
store.account.set(proposal.address, proposal);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment