Decouple calculate fee from Wallet#2354
Conversation
| } | ||
|
|
||
| tx.NetworkFee = CalculateNetworkFee(snapshot, tx); | ||
| tx.NetworkFee = CalculateNetworkFee(snapshot, tx, ProtocolSettings, (a) => GetAccount(a)?.Contract?.Script); |
There was a problem hiding this comment.
It seems we still need to rely on Wallet for func CalculateNetworkFee
There was a problem hiding this comment.
You can use this method if you have a dictionary
vncoelho
left a comment
There was a problem hiding this comment.
Looks good to me.
It opens more possibilities, in my opnion.
|
@shargon, my idea was that with this change we would be able to, in the future, add a new call on However, we need to discuss if this would be a good practice. |
|
@erikzhang Merge? |
|
@shargon Wasn't this fixed already? |
|
Close as inactive |
|
I want to do this, it doesn't hurt I think |
|
Then please update. I am not against any pr, if you update it, we can finish it. |
|
Moved to #3147 |
Close #2352