NEWTON

NEWTON


Popular tags

    Why abi of warp compiled contract does not match original solidity abi?

    Asked

    6 days ago

    1

    view


    0

    Why abi of warp compiled contract does not match original solidity abi?

      warp

    victorforissier.eth

    asked

    6 days ago


    1 answers

    0

    Accepted answer

    The ABI of your warp’d Cairo contract is different for two reasons:

    1. Cairo doesn’t allow overloading, so we append the EVM function selector of the function to its name to avoid collisions.
    2. Cairo doesn’t have the same types as Solidity.

    If you try to interact with your warp’d contracts through warp cli or hardhat- warp then it does the automatic ABI translation for you.

    victorforissier.eth

    answered

    6 days ago

    Your answer

    NEWTON

    NEWTON