Update error message for gas fee calculation in 'AirdropFeesSubscriber.qul'
Description
Situation: In a Status Community, the Owner or TokenMaster tries to airdrop a community token. For this, they choose a wallet account different from the one used to mint the Owner and TokenMaster tokens.
Result:
The error message is, Estimation reverted. Make sure you are using the account that owns the TokenMaster or Owner Token.
Explanation: This error condition is confusing and needs further explanation in Status Help documentation.
Being a TokenMaster grants you permissions to mint and airdrop tokens. From this error message, it appears that airdropping tokens is only possible when it's done from the wallet account that owns any one of these two tokens, or from the Status profile who minted the Owner and TM token.
Which one is the situation?
A. Where the message reads "account", it means "Status profile". B. The TokenMaster can only airdrop community tokens they have minted, but can't airdrop tokens minted by the Owner (and vice versa).
References
- https://github.com/status-im/status-desktop/pull/15448
- https://github.com/status-im/status-desktop/blob/5a97b034e21f01a6f92723078264d2528d51870a/ui/app/AppLayouts/Communities/helpers/AirdropFeesSubscriber.qml#L50
-
CC/ @jrainville
Which one is the situation?
@jorge-campo it's kind of A, whereas account means wallet account.
Basically, the transaction can only work if the user uses the same wallet account (address) that also owns the Token Master NFT or the Owner NFT.
That is because the contract does a verification that the address calling it has the right token. Otherwise, anyone could try and airdrop a community token without having the rights.
Let me know how I can rephrase the sentence to make it clearer or if you have more questions.
Let me know how I can rephrase the sentence to make it clearer or if you have more questions.
Understood! Thanks, @jrainville
I believe we only need to add one word to the sentence; if only because these two concepts (account and profile) are confusing for users:
Estimation reverted. Make sure you are using the _Wallet_ account that owns the TokenMaster or Owner token.
Note: we use
Walletand notwalletwhen referring to Status Wallet.