Skip to content

Commit

Permalink
Rename fields
Browse files Browse the repository at this point in the history
  • Loading branch information
AnkushinDaniil committed Dec 18, 2024
1 parent 630ede9 commit 183f7a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ func makeCBlockInfo(blockInfo *BlockInfo) C.BlockInfo {
cBlockInfo.block_number = C.ulonglong(blockInfo.Header.Number)
cBlockInfo.block_timestamp = C.ulonglong(blockInfo.Header.Timestamp)
copyFeltIntoCArray(blockInfo.Header.SequencerAddress, &cBlockInfo.sequencer_address[0])
copyFeltIntoCArray(blockInfo.Header.GasPrice, &cBlockInfo.gas_price_wei[0])
copyFeltIntoCArray(blockInfo.Header.GasPriceSTRK, &cBlockInfo.gas_price_fri[0])
copyFeltIntoCArray(blockInfo.Header.L1GasPriceETH, &cBlockInfo.gas_price_wei[0])
copyFeltIntoCArray(blockInfo.Header.L1GasPriceSTRK, &cBlockInfo.gas_price_fri[0])
cBlockInfo.version = cstring([]byte(blockInfo.Header.ProtocolVersion))
copyFeltIntoCArray(blockInfo.BlockHashToBeRevealed, &cBlockInfo.block_hash_to_be_revealed[0])
if blockInfo.Header.L1DAMode == core.Blob {
Expand Down
8 changes: 4 additions & 4 deletions vm/vm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ func TestExecute(t *testing.T) {
Header: &core.Header{
Timestamp: 1666877926,
SequencerAddress: utils.HexToFelt(t, "0x46a89ae102987331d369645031b49c27738ed096f2789c24449966da4c6de6b"),
GasPrice: &felt.Zero,
GasPriceSTRK: &felt.Zero,
L1GasPriceETH: &felt.Zero,
L1GasPriceSTRK: &felt.Zero,
},
}, state,
&network, false, false, false)
Expand All @@ -218,8 +218,8 @@ func TestExecute(t *testing.T) {
_, _, _, _, err := New(false, nil).Execute(nil, nil, []*felt.Felt{}, &BlockInfo{
Header: &core.Header{
SequencerAddress: &felt.Zero,
GasPrice: &felt.Zero,
GasPriceSTRK: &felt.Zero,
L1GasPriceETH: &felt.Zero,
L1GasPriceSTRK: &felt.Zero,
},
}, state, &network, false, false, false)
require.NoError(t, err)
Expand Down

0 comments on commit 183f7a7

Please sign in to comment.