Comments (3)
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.
.
from starknet.py.
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.
from starknet.py.
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") }))').
from starknet.py.
Related Issues (20)
- [BUG] <starknet_py.abi.v2.parser.AbiParsingError> HOT 1
- Error when requesting tx receipt
- `get_events` does not return full event information
- Allow ignoring unknown keys in RPC responses
- `get_class_by_hash` returns a string in abi for Cairo 1 classes
- Remove goerli network HOT 1
- Add compiled_class_hash for contract compiled with cairo 2.6.0
- Split RPC schemas into multiple files HOT 1
- Update node version on github action HOT 1
- Move compiling contracts on github actions HOT 1
- Remove unknown=EXCLUDE after devnet fix response HOT 1
- Add support for ByteArray
- Change chainId in devnet tests
- Remove declaration of cairo 0 contracts
- Add utility to convert fee estimation to resource bounds
- [BUG] get_block not working anymore HOT 2
- Update `TypedData` in line with `SNIP-12` HOT 3
- Update docs HOT 1
- error in FullNodeClient, is it RPC error or contract error?
- Consider renaming RPC schemes HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starknet.py.