@@ -702,11 +702,11 @@ func generateTxData() {
702
702
TestSyntheticTxHash = syntheticEthTx .Hash ().Hex ()
703
703
TxNonEvm = app.TestTx {}
704
704
TxNonEvmWithSyntheticLog = app.TestTx {}
705
- bloomTx1 := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
705
+ bloomTx1 := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
706
706
Address : common .HexToAddress ("0x1111111111111111111111111111111111111111" ),
707
707
Topics : []common.Hash {common .HexToHash ("0x1111111111111111111111111111111111111111111111111111111111111111" ),
708
708
common .HexToHash ("0x1111111111111111111111111111111111111111111111111111111111111112" )},
709
- }}}} )
709
+ }}})
710
710
if err := EVMKeeper .MockReceipt (Ctx , tx1 .Hash (), & types.Receipt {
711
711
From : "0x1234567890123456789012345678901234567890" ,
712
712
To : "0x1234567890123456789012345678901234567890" ,
@@ -804,7 +804,7 @@ func buildTx(txData ethtypes.DynamicFeeTx) (client.TxBuilder, *ethtypes.Transact
804
804
805
805
func setupLogs () {
806
806
// block height 2
807
- bloom1 := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
807
+ bloom1 := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
808
808
Address : common .HexToAddress ("0x1111111111111111111111111111111111111112" ),
809
809
Topics : []common.Hash {
810
810
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000123" ),
@@ -815,7 +815,7 @@ func setupLogs() {
815
815
Topics : []common.Hash {
816
816
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000123" ),
817
817
},
818
- }}}} )
818
+ }}})
819
819
CtxMultiTx := Ctx .WithBlockHeight (MockHeight2 )
820
820
EVMKeeper .MockReceipt (CtxMultiTx , multiTxBlockTx1 .Hash (), & types.Receipt {
821
821
BlockNumber : MockHeight2 ,
@@ -831,13 +831,13 @@ func setupLogs() {
831
831
}},
832
832
EffectiveGasPrice : 100 ,
833
833
})
834
- bloom2 := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
834
+ bloom2 := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
835
835
Address : common .HexToAddress ("0x1111111111111111111111111111111111111113" ),
836
836
Topics : []common.Hash {
837
837
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000123" ),
838
838
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000456" ),
839
839
},
840
- }}}} )
840
+ }}})
841
841
EVMKeeper .MockReceipt (CtxMultiTx , multiTxBlockTx2 .Hash (), & types.Receipt {
842
842
BlockNumber : MockHeight2 ,
843
843
TransactionIndex : 3 ,
@@ -849,13 +849,13 @@ func setupLogs() {
849
849
}},
850
850
EffectiveGasPrice : 100 ,
851
851
})
852
- bloom3 := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
852
+ bloom3 := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
853
853
Address : common .HexToAddress ("0x1111111111111111111111111111111111111114" ),
854
854
Topics : []common.Hash {
855
855
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000123" ),
856
856
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000456" ),
857
857
},
858
- }}}} )
858
+ }}})
859
859
EVMKeeper .MockReceipt (CtxMultiTx , multiTxBlockTx3 .Hash (), & types.Receipt {
860
860
BlockNumber : MockHeight2 ,
861
861
TransactionIndex : 4 ,
@@ -867,13 +867,13 @@ func setupLogs() {
867
867
}},
868
868
EffectiveGasPrice : 100 ,
869
869
})
870
- bloom4 := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
870
+ bloom4 := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
871
871
Address : common .HexToAddress ("0x1111111111111111111111111111111111111115" ),
872
872
Topics : []common.Hash {
873
873
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000123" ),
874
874
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000456" ),
875
875
},
876
- }}}} )
876
+ }}})
877
877
CtxMock := Ctx .WithBlockHeight (MockHeight8 )
878
878
EVMKeeper .MockReceipt (CtxMock , multiTxBlockTx4 .Hash (), & types.Receipt {
879
879
BlockNumber : MockHeight8 ,
@@ -887,13 +887,13 @@ func setupLogs() {
887
887
EffectiveGasPrice : 100 ,
888
888
})
889
889
// create a receipt with a synthetic log
890
- bloomSynth := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
890
+ bloomSynth := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
891
891
Address : common .HexToAddress ("0x1111111111111111111111111111111111111116" ),
892
892
Topics : []common.Hash {
893
893
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000234" ),
894
894
common .HexToHash ("0x0000000000000000000000000000000000000000000000000000000000000456" ),
895
895
},
896
- }}}} )
896
+ }}})
897
897
EVMKeeper .MockReceipt (CtxMock , multiTxBlockSynthTx .Hash (), & types.Receipt {
898
898
TxType : evmrpc .ShellEVMTxType ,
899
899
BlockNumber : MockHeight100 ,
@@ -949,11 +949,11 @@ func setupLogs() {
949
949
EVMKeeper .SetBlockBloom (MultiTxCtx , []ethtypes.Bloom {bloom1 , bloom2 , bloom3 })
950
950
951
951
// block 8
952
- bloomTx1 := ethtypes .CreateBloom (ethtypes. Receipts { & ethtypes.Receipt {Logs : []* ethtypes.Log {{
952
+ bloomTx1 := ethtypes .CreateBloom (& ethtypes.Receipt {Logs : []* ethtypes.Log {{
953
953
Address : common .HexToAddress ("0x1111111111111111111111111111111111111111" ),
954
954
Topics : []common.Hash {common .HexToHash ("0x1111111111111111111111111111111111111111111111111111111111111111" ),
955
955
common .HexToHash ("0x1111111111111111111111111111111111111111111111111111111111111112" )},
956
- }}}} )
956
+ }}})
957
957
EVMKeeper .SetBlockBloom (Ctx , []ethtypes.Bloom {bloomSynth , bloom4 , bloomTx1 })
958
958
}
959
959
0 commit comments