applyResponseAddChangedAccount
applyResponseAddChangedAccount is used internally by Shardus to set the appReceiptData and appReceiptDataHash fields in the resultObject. The function takes in five parameters:
resultObject- aShardusTypes.ApplyResponseobject generated from theapplyfunction.accountId- the account IDaccount- a ShardusTypes.WrappedResponse objecttxId- the transaction IDtxTimestamp- the transaction timestamp
applyResponseAddChangedAccount(
resultObject: ShardusTypes.ApplyResponse,
accountId: string,
account: ShardusTypes.WrappedResponse,
txId: string,
txTimestamp: number
) {
resultObject.accountWrites.push({
accountId,
data: account,
txId,
timestamp: txTimestamp,
})
}