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
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
There are two instances of GasPrices in the whole BlockContext struct. First one located in StarknetOsConfig, and the other one in BlockInfo. Both of these structs are included in BlockContext.
I can't find any usage reference for the one in BlockInfo.
Also because StarknetOsConfig doesn't make the individual fields mutable, you can't easily mutate the gas price individually. You have to instead replace the whole struct if you wanna change the gas price.
The text was updated successfully, but these errors were encountered:
There are two instances of
GasPrices
in the wholeBlockContext
struct. First one located inStarknetOsConfig
, and the other one inBlockInfo
. Both of these structs are included inBlockContext
.starknet_in_rust/src/definitions/block_context.rs
Lines 158 to 178 in c90c46b
But the one that is used for fee calculation is the one in os config:
starknet_in_rust/src/definitions/block_context.rs
Lines 220 to 222 in c90c46b
I can't find any usage reference for the one in
BlockInfo
.Also because
StarknetOsConfig
doesn't make the individual fields mutable, you can't easily mutate the gas price individually. You have to instead replace the whole struct if you wanna change the gas price.The text was updated successfully, but these errors were encountered: