You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'EXECUTION_RESOURCES' schema in the specification defines gas-related fields (l1_gas and l1_data_gas) as type integer. However, there is a discrepancy with the implementation in blockifier (v0.8.0), which returns these values as u128. Internally, the types used for gas values in the types-rs crate are u64, leading to inconsistency and potential type errors.
specification: integer (undefined bit width).
blockifier output: u128.
types-rs internal representation: u64.
This misalignment can cause unexpected behavior and integration issues when consuming Blockifier outputs.
Expected behavior:
the specification, blockifier, and the internal representation should use a consistent type.
gas-related fields (l1_gas, l1_data_gas) should be defined as u128
Steps to reproduce:
Related code:
starknet-types-rpc
#[derive(Clone,Debug,Eq,Hash,PartialEq,Serialize,Deserialize)]pubstructDataAvailability{/// the data gas consumed by this transaction's data, 0 if it uses gas for DApubl1_data_gas:u64,/// the gas consumed by this transaction's data, 0 if it uses data gas for DApubl1_gas:u64,}
{
"type": "object",
"title": "DataResources",
"description": "the data-availability resources of this transaction",
"properties": {
"data_availability": {
"type": "object",
"properties": {
"l1_gas": {
"title": "L1Gas",
"description": "the gas consumed by this transaction's data, 0 if it uses data gas for DA",
"type": "integer"
},
"l1_data_gas": {
"title": "L1DataGas",
"description": "the data gas consumed by this transaction's data, 0 if it uses gas for DA",
"type": "integer"
}
}
}
}
}
Other information:
The text was updated successfully, but these errors were encountered:
Bug Report
types-rs version:
Current behavior:
The 'EXECUTION_RESOURCES' schema in the specification defines gas-related fields (l1_gas and l1_data_gas) as type integer. However, there is a discrepancy with the implementation in blockifier (v0.8.0), which returns these values as u128. Internally, the types used for gas values in the types-rs crate are u64, leading to inconsistency and potential type errors.
This misalignment can cause unexpected behavior and integration issues when consuming Blockifier outputs.
Expected behavior:
Steps to reproduce:
Related code:
starknet-types-rpc
blockifier
openrpc specs
Other information:
The text was updated successfully, but these errors were encountered: