Help with StarkNet Contract Interaction: run_system Function Returning 'Input too short for argument #1444
Replies: 1 comment 1 reply
-
Hi @otatataata, please check if you properly serialize the input. In the starknet.py we have a few classes that can help you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm working on integrating with a blockchain-based game called Influence that operates on StarkNet, a Layer 2 Ethereum scaling solution. I'm trying to call a smart contract function,
run_system
, which executes certain game actions. However, I'm running into an error that I can't seem to resolve.The Problem:
When I attempt to execute the function with the following
calldata
, I receive the error: "Execution failed. Failure reason: 'Input too short for arguments'."Here is the relevant part of my code:
Error:
Execution failed. Failure reason: 'Input too short for arguments.
Here is the relevant part of the ABI for the
run_system
function:Here is the definition of ExtractRessourceFinish:
When i copy the transaction in argent X here are the arguments: [
"0x457874726163745265736f7572636546696e697368",
"0x5",
"0x5",
"0x123c",
"0x1",
"0x1",
"0xb16"
]
Beta Was this translation helpful? Give feedback.
All reactions