NEWTON
Asked
6 months ago
114
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
6 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
6 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 can I do if I've sent transactions from StarkNet to Ethereum L2 -> L1 on mainnet and transaction got stacked?
What resources (Github repos, projects) do you follow about Cairo Language? Why?
What is Starknet.js?
Is there any issue between using 4.4 and 3.x starknet.js?
My Alchemy dashboard usage is low?
Can you explain what is Abstract Account?
How do I create my own account abstraction using starknetjs?