xJonathanLEI / starkli

Starkli (/ˈstɑːrklaɪ/), a ⚡ blazing ⚡ fast ⚡ CLI tool for Starknet powered by 🦀 starknet-rs 🦀
https://book.starkli.rs
Apache License 2.0
163 stars 47 forks source link

`Error: code=-32603, message="Internal error: Execution failed. Failure reason: "Input too long for arguments"."` #36

Closed maxgiraldo closed 12 months ago

maxgiraldo commented 1 year ago

Following Starknet book at https://book.starknet.io/chapter_1/first_contract.html#invoking_a_write_function, I got an error running the following command:

starkli invoke \
    <CONTRACT_ADDRESS> \
    transfer_ownership \
    <NEW_OWNER_ADDRESS> \
    --network=goerli-1

Error: code=-32603, message="Internal error: Execution failed. Failure reason: "Input too long for arguments"."

xJonathanLEI commented 1 year ago

What account contract are you using? Argent X? Has it been upgraded to Cairo 1?

maxgiraldo commented 1 year ago

Yes I'm using an ArgentX wallet. My account contract is at https://testnet.starkscan.co/contract/0x02d40bdc7b27c71491fb3afe4c24cef03c99f8286e64a25e4533f5a4a87f7f18 which I upgraded to cairo 1, but i'm still getting the same error.

xJonathanLEI commented 1 year ago

This error is exactly caused by upgrading to Cairo 1. I will make a new release tomorrow with the fix.

xJonathanLEI commented 12 months ago

Argent Cairo 1 account contract is now supported (in v0.1.14). Upgrade your Starkli installation with starkliup and re-fetch the account file.