When running InvokeInstance, the amount that is supplied is used both as the amount to transfer to the instance, and the amount that is reserved for payment of fees. This latter part is incorrect and can lead to spurious "insufficient funds" errors when dry-running contract updates.
Bug Description
When running InvokeInstance, the amount that is supplied is used both as the amount to transfer to the instance, and the amount that is reserved for payment of fees. This latter part is incorrect and can lead to spurious "insufficient funds" errors when dry-running contract updates.
Steps to Reproduce
works when the amount ... is <= 1/2 of the accounts amount but not if it is more.
The contract being invoked is simple
Versions