Skip to content
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

Rename contract names from fee to l2 #1266

Open
ddoktorski opened this issue Jan 26, 2024 · 3 comments
Open

Rename contract names from fee to l2 #1266

ddoktorski opened this issue Jan 26, 2024 · 3 comments

Comments

@ddoktorski
Copy link
Collaborator

Investigate how to verify that there is enough STRK tokens on an account to be deployed using DeployAccountV3.

Discussed here

@ddoktorski ddoktorski added the question Further information is requested label Jan 26, 2024
@ddoktorski
Copy link
Collaborator Author

Both L1_GAS and L2_GAS in the resource_bounds are specified in FRI, hence we can simply call STRK contract to check a balance. We need to decide whether we should perform this check on the starknet.py side at all, since RPC will throw an error if balance is not sufficient anyway. The current error doesn't include token name, it only provides the information Account balance is smaller than the transaction's max_fee..

@ddoktorski ddoktorski added priority: low and removed question Further information is requested labels Jan 31, 2024
Copy link
Contributor

github-actions bot commented Mar 2, 2024

This issue is stale because it has not received any activity in the last 30 days. Remove stale label or add a comment, otherwise it will be closed in 5 days.

@tkumor3
Copy link
Collaborator

tkumor3 commented Mar 29, 2024

Current RPC response in the case of having insufficient balance is:

Client failed with code 55. Message: Account validation failed. Data: perform_validations call failed; failure reason: TransactionFailureReason(code='native_blockifier.PyTransactionExecutionError', error_message='TransactionPreValidationError(TransactionFeeError(L1GasBoundsExceedBalance { max_amount: 1109, max_price: 48000000000000, balance_low: StarkFelt("0x0000000000000000000000000000000000000000000000000000000001ad7180"), balance_high: StarkFelt("0x0000000000000000000000000000000000000000000000000000000000000000") }))').

@THenry14 THenry14 changed the title Investigate sufficient balance check in the Account.deploy_account_v3 Rename contract names from fee to l2 Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants