Skip to content

Commit fafe97e

Browse files
committed
test: fix errors
1 parent f2718e1 commit fafe97e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rpc/v8/block.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,9 @@ type BlockHeader struct {
144144
SequencerAddress *felt.Felt `json:"sequencer_address,omitempty"`
145145
L1GasPrice *ResourcePrice `json:"l1_gas_price"`
146146
L1DataGasPrice *ResourcePrice `json:"l1_data_gas_price,omitempty"`
147-
L2GasPrice *ResourcePrice `json:"l2_gas_price"`
148147
L1DAMode *L1DAMode `json:"l1_da_mode,omitempty"`
149148
StarknetVersion string `json:"starknet_version"`
149+
L2GasPrice *ResourcePrice `json:"l2_gas_price"`
150150
}
151151

152152
type ResourcePrice struct {

rpc/v8/state_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func (h *Handler) StateUpdate(id BlockID) (*StateUpdate, *jsonrpc.Error) {
8080
if err == nil {
8181
update = pending.GetStateUpdate()
8282
}
83-
} else if id.Hash() != nil {
83+
} else if id.IsHash() {
8484
update, err = h.bcReader.StateUpdateByHash(id.Hash())
8585
} else {
8686
update, err = h.bcReader.StateUpdateByNumber(id.Number())

0 commit comments

Comments
 (0)