@@ -110,7 +110,7 @@ const hexData = "0x000000000000000000000000376c47978271565f56deb45495afa69e59c16
110
110
func TestUnpackIndexedStringTyLogIntoMap (t * testing.T ) {
111
111
hash := crypto .Keccak256Hash ([]byte ("testName" ))
112
112
topics := []common.Hash {
113
- common . HexToHash ( "0x0" ),
113
+ crypto . Keccak256Hash ([] byte ( "received(string,address,uint256,bytes)" ) ),
114
114
hash ,
115
115
}
116
116
mockLog := newMockLog (topics , common .HexToHash ("0x0" ))
@@ -135,7 +135,7 @@ func TestUnpackIndexedSliceTyLogIntoMap(t *testing.T) {
135
135
}
136
136
hash := crypto .Keccak256Hash (sliceBytes )
137
137
topics := []common.Hash {
138
- common . HexToHash ( "0x0" ),
138
+ crypto . Keccak256Hash ([] byte ( "received(string[],address,uint256,bytes)" ) ),
139
139
hash ,
140
140
}
141
141
mockLog := newMockLog (topics , common .HexToHash ("0x0" ))
@@ -160,7 +160,7 @@ func TestUnpackIndexedArrayTyLogIntoMap(t *testing.T) {
160
160
}
161
161
hash := crypto .Keccak256Hash (arrBytes )
162
162
topics := []common.Hash {
163
- common . HexToHash ( "0x0" ),
163
+ crypto . Keccak256Hash ([] byte ( "received(address[2],address,uint256,bytes)" ) ),
164
164
hash ,
165
165
}
166
166
mockLog := newMockLog (topics , common .HexToHash ("0x0" ))
@@ -187,7 +187,7 @@ func TestUnpackIndexedFuncTyLogIntoMap(t *testing.T) {
187
187
var functionTy [24 ]byte
188
188
copy (functionTy [:], functionTyBytes [0 :24 ])
189
189
topics := []common.Hash {
190
- common . HexToHash ( "0x99b5620489b6ef926d4518936cfec15d305452712b88bd59da2d9c10fb0953e8" ),
190
+ crypto . Keccak256Hash ([] byte ( "received(function,address,uint256,bytes)" ) ),
191
191
common .BytesToHash (functionTyBytes ),
192
192
}
193
193
mockLog := newMockLog (topics , common .HexToHash ("0x5c698f13940a2153440c6d19660878bc90219d9298fdcf37365aa8d88d40fc42" ))
@@ -208,7 +208,7 @@ func TestUnpackIndexedBytesTyLogIntoMap(t *testing.T) {
208
208
bytes := []byte {1 , 2 , 3 , 4 , 5 }
209
209
hash := crypto .Keccak256Hash (bytes )
210
210
topics := []common.Hash {
211
- common . HexToHash ( "0x99b5620489b6ef926d4518936cfec15d305452712b88bd59da2d9c10fb0953e8" ),
211
+ crypto . Keccak256Hash ([] byte ( "received(bytes,address,uint256,bytes)" ) ),
212
212
hash ,
213
213
}
214
214
mockLog := newMockLog (topics , common .HexToHash ("0x5c698f13940a2153440c6d19660878bc90219d9298fdcf37365aa8d88d40fc42" ))
0 commit comments