SIGBlockchain / project_aurum

SIG Blockchain blockchain project in Go
https://acm.cs.uic.edu/sigblockchain
MIT License
7 stars 1 forks source link

Make ExchangeBetweenAccountsUpdateAccountBalanceTable function take in a contract as a parameter #246

Closed kastolars closed 5 years ago

kastolars commented 5 years ago

This may make some tests fail, so refactor them after making the change.

Function this pertains to: https://github.com/SIGBlockchain/project_aurum/blob/dev/internal/producer/src/accountstable/accountstable.go#L43

Instead of having all those parameters, just pass in a contract and extract all of the needed information from it.

kastolars commented 5 years ago

Should we change the name of it?

HarryL5004 commented 5 years ago

Completed