NEWTON

NEWTON


Popular tags

    Cairo Testing Error

    Asked

    4 months ago

    11

    views


    0

    When running my python tests I get:

    NotImplementedError: Invoking through an account contract is not supported yet, please use execute() instead.

    Has anyone seen this problem and know of a solution?

    This question was originally posted on Triality

      cairocairo-lang

    1 answers

    0

    If you are writing pytests for v0.10 of cairo and you see that error you may be using an invoke() method to call your contract like:

    contract.yourFunc(1000).invoke()

    Make sure you change that to:

    contract.yourFunc(1000).execute()

    and you should be good

    This answer was originally posted on Triality

    answered

    4 months ago

    Your answer

    NEWTON

    NEWTON