NEWTON
Asked
4 months ago
111
views
0
Hey there!
I am using the Oz Nile framework for smart contract development on Starknet. More specifically, I am testing the proxy upgrade feature, but my tests fail with the error message TypeError: int() can't convert non-string with explicit base. This happens when nile.signer tries to sign a transaction. Here's the snippet in the stack trace below.
def sign_transaction(self, sender, calls, nonce, max_fee):
"""Sign a transaction for an Account."""
(call_array, calldata) = from_call_to_call_array(calls)
message_hash = get_transaction_hash(
> int(sender, 16), call_array, calldata, nonce, int(max_fee)
)
Some relevant info: cairo-lang==0.10.0 cairo-nile==0.8.2 openzeppelin-cairo-contracts==0.4.0b pytest==7.1.2 python=3.9
This question was originally posted on StarkNet Discord
Newton
asked
4 months ago
0
Accepted answer
It seems that one of two options may help you:
sender is not a string and that's why int() can't convert it
try to resolve this by switching cairo-nile to v0.9.0
This answer was originally posted on StarkNet Discord
Newton
answered
4 months ago
How can I pass an array of felt to call with Nile in StarkNet?
A TypeError while unpacking nested tuples into felts
Does anyone have an example of a positional request to `starknet_addInvokeTransaction` on devnet that is working?
An error “AssertionError: Sender must be passed explicitly when making a direct declaration using —no_wallet.” using the new nile?
Why does range_check_ptr chek for [0, 2^128) instead of [0, P/2)
What is the inefficiency in this cairo code using alloc_locals
Has anyone implemented a minimal proxy in Cairo lang?
What resources (Github repos, projects) do you follow about Cairo Language? Why?
Does writing it to zero actually do something?
when starknet token?
How to make recursive function in Cairo Lang?
a pointer with a hint, without doing a memory allocation
How to setup local Starknet node with Account contracts?
A plan to get better visibility when a transaction got received but not placed into a block?