You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we check if the caller has enough funds to call the smart contract but we check the final balance of the caller. It prevents from calling the smart contract whereas the call it actually possible and will succeed.
we check if the caller has enough funds to call the smart contract but we check the final balance of the caller. It prevents from calling the smart contract whereas the call it actually possible and will succeed.
I have an account A in massa wallet that have 0 MAS
using an account B that have MAS I send MAS to account A
I switch to account A and I see the balance higher than zero
I send FT token with the wallet, but it fails because account A MAS balance is not final
In anyway I think it's better to rely on the candidate balance in a more general case. I see no reason to enforce a final balance for a call sc, even more in massa-web3 lib.
here
massa-web3/packages/massa-web3/src/web3/SmartContractsClient.ts
Line 153 in 3bdb27a
It should check the candidate balance
cc @AurelienFT @Ben-Rey WDYT?
The text was updated successfully, but these errors were encountered: