NEWTON
Asked
5 months ago
85
views
0
Hey everyone!
I am trying to unpack nested tuples into felts t pass as calldata to a contract via a proxy call.
await signer.send_transaction(admin, proxy_contract.contract_address, 'createSyntheticAsset', [ *test_synthetic_asset.to_tuple() ])
But this fails with this error: TypeError: '<' not supported between instances of 'tuple' and 'int'
does anyone have an Idea about this?
This question was originally posted on StarkNet Discord
Newton
asked
5 months ago
0
Accepted answer
I'm assuming you're using Client.send_transaction, this method however expects a prepared InvokeFunction and doesn't accept any other arguments. You can try using Contract api https://starknetpy.readthedocs.io/en/latest/quickstart.html#using-contract to easily create and invoke transactions.
This answer was originally posted on StarkNet Discord
Newton
answered
5 months ago
Cairo/Nile: Testing the proxy upgrade feature, but my tests fail with the error message TypeError: int() can't convert non-string with explicit base.
Do you know a function that converts an array of felts (numbers) to a single string in JS? [Cairo Lang]
Cairo 0.10.0 Error: Cannot unpack return value error
Has anyone implemented a minimal proxy in Cairo lang?
Is there any way to abi-encode calldata to pass to `account.execute`?
ApeWorX: How do I call an account while trying to test a function?
Is there no way for me to have a struct as a `@storage_var` if it contains an array fo felts inside ?
Cairo: Getting function selector
How to make output like "hello world" in Cairo Language (StarkNet)?
Why will I use events in Cairo language?
Error compiling Pathfinder (rust)
What are steps to create a new contract using starknetjs?
How can I define two functions with the same name but not the same arguments?
Getting the CLASS_HASH of a contract in Cairo