Area/Action
Requesting funds with the /faucet command to a contract that is not payable
Expected behaviour
Don't create a transaction, scream at requester (optional)
Actual behaviour
Funding request made, bot crashes after as the tx fails.
Description
Need to add a check to identify if the submitted address is a contract. If it is, check that it's payable, and only then create a transaction. Notify the requestor that a funding request was not made if it isn't payable.
Area/Action Requesting funds with the /faucet command to a contract that is not payable
Expected behaviour Don't create a transaction, scream at requester (optional)
Actual behaviour Funding request made, bot crashes after as the tx fails.
Description Need to add a check to identify if the submitted address is a contract. If it is, check that it's payable, and only then create a transaction. Notify the requestor that a funding request was not made if it isn't payable.
Refer https://solidity-by-example.org/payable/