-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type 'core::integer::i128' is not defined. #1366
Comments
I'm going to replace every occurrences of i128 in the ABI with u128 and see what happens. contract = Contract(address=DEPLOYED_CONTRACT, abi=abi, provider=account) |
def replace_i128_with_u128(data):
if isinstance(data, dict):
return {key: replace_i128_with_u128(value) for key, value in data.items()}
elif isinstance(data, list):
return [replace_i128_with_u128(item) for item in data]
elif isinstance(data, str):
return data.replace('i128', 'u128')
else:
return data
abi_as_u128 = replace_i128_with_u128(abi)
contract = Contract(address=DEPLOYED_CONTRACT, abi=abi_as_u128, provider=accounts) Result : |
Hi @Ophiase, replacing |
Closing it, as there wasn't reply for a long time. |
Feature Request
This type is properly defined in Cairo.
I have a contract that use it, but its not recognized by starknet.py.
The text was updated successfully, but these errors were encountered: