Closed sandoche closed 2 years ago
Proposal code example
await window.contract.add_proposal(
{
proposal: {
description: e.target.proposalDescription.value.trim(),
kind: {
Transfer: {
token_id: paymentOption === 'NEAR' ? '' : e.target.proposalFT.value,
receiver_id: e.target.proposalTarget.value,
amount:
paymentOption === 'NEAR'
? amountYokto
: amount.mul('1e' + r.metadata.decimals).toFixed()
}
}
}
},
new Decimal('30000000000000').toString(),
daoPolicy.proposal_bond.toString()
);
Get the transactionHashes
and save it
Canceled transaction: ?errorCode=userRejected&errorMessage=User%2520rejected%2520transaction
Features
Tasks