I have a list of transactions interms of record i want to iterate the List to get specific transaction
this is my contract
` contract AccountContract=
record user_transactin={
transaction_id:int,
tran_owner: address,
amount:int,
}
record user_account = {
id :int,
acc_name:string,
history: list(user_transaction) //what i want to find single transaction from this list and update the transaction amount
}
`
Maybe the filter function will help? The usage is similar to partition. The code would be something like List.filter((t) => id /= t.transaction_id, transactions)