codedamn

Fallback Function

Created by Kshitij about a year ago

0

No description provided

6 Comments

    0

    Great Lec

    @dinethpram0110

    Dineth Pramodya

    @dinethpram0110

    0

    can i call payEther() in the fall back function ?(just like function calling in other programming languages).If i can do so,then i just have to send ether to the contract and the contract will automatically call it right?

    @harimenon0143

    Hari Menon

    @harimenon0143

    0

    Why instead of re-sending the Ethers using the transfer() function we simply revert() the transaction???

    1

    You should include the receive() function and explain the differences between receive() and fallback(), that should help a lot

    1

    In the previous assignment - "Create a wallet" . The solution given ,when deployed in the Remix IDE throws an exception ----- [ creation of Wallet errored: Error encoding arguments: Error: invalid address (argument="address", value="", code=INVALID_ARGUMENT, version=address/5.5.0) (argument=null, value="", code=INVALID_ARGUMENT, version=abi/5.5.0) ] . Please look into it.

    @m04774m

    Moazzam Majid

    @m04774m

    0

    Im currently getting an error message in remix ide and to define a receive function to explicitly handle the received ether.. can you clear the doubt?

    @sabaka3560

    Tanmay Bohra

    @sabaka3560

Your comment