@@ -1327,10 +1327,11 @@ func TestSimulateV1(t *testing.T) {
1327
1327
validation = true
1328
1328
)
1329
1329
type log struct {
1330
- Address common.Address `json:"address"`
1331
- Topics []common.Hash `json:"topics"`
1332
- Data hexutil.Bytes `json:"data"`
1333
- BlockNumber hexutil.Uint64 `json:"blockNumber"`
1330
+ Address common.Address `json:"address"`
1331
+ Topics []common.Hash `json:"topics"`
1332
+ Data hexutil.Bytes `json:"data"`
1333
+ BlockNumber hexutil.Uint64 `json:"blockNumber"`
1334
+ BlockTimestamp hexutil.Uint64 `json:"blockTimestamp"`
1334
1335
// Skip txHash
1335
1336
//TxHash common.Hash `json:"transactionHash" gencodec:"required"`
1336
1337
TxIndex hexutil.Uint `json:"transactionIndex"`
@@ -1677,10 +1678,11 @@ func TestSimulateV1(t *testing.T) {
1677
1678
Calls : []callRes {{
1678
1679
ReturnValue : "0x" ,
1679
1680
Logs : []log {{
1680
- Address : randomAccounts [2 ].addr ,
1681
- Topics : []common.Hash {common .HexToHash ("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" )},
1682
- BlockNumber : hexutil .Uint64 (11 ),
1683
- Data : hexutil.Bytes {},
1681
+ Address : randomAccounts [2 ].addr ,
1682
+ Topics : []common.Hash {common .HexToHash ("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff" )},
1683
+ BlockNumber : hexutil .Uint64 (11 ),
1684
+ BlockTimestamp : hexutil .Uint64 (0x70 ),
1685
+ Data : hexutil.Bytes {},
1684
1686
}},
1685
1687
GasUsed : "0x5508" ,
1686
1688
Status : "0x1" ,
@@ -1853,18 +1855,20 @@ func TestSimulateV1(t *testing.T) {
1853
1855
addressToHash (accounts [0 ].addr ),
1854
1856
addressToHash (randomAccounts [0 ].addr ),
1855
1857
},
1856
- Data : hexutil .Bytes (common .BigToHash (big .NewInt (50 )).Bytes ()),
1857
- BlockNumber : hexutil .Uint64 (11 ),
1858
+ Data : hexutil .Bytes (common .BigToHash (big .NewInt (50 )).Bytes ()),
1859
+ BlockNumber : hexutil .Uint64 (11 ),
1860
+ BlockTimestamp : hexutil .Uint64 (0x70 ),
1858
1861
}, {
1859
1862
Address : transferAddress ,
1860
1863
Topics : []common.Hash {
1861
1864
transferTopic ,
1862
1865
addressToHash (randomAccounts [0 ].addr ),
1863
1866
addressToHash (fixedAccount .addr ),
1864
1867
},
1865
- Data : hexutil .Bytes (common .BigToHash (big .NewInt (100 )).Bytes ()),
1866
- BlockNumber : hexutil .Uint64 (11 ),
1867
- Index : hexutil .Uint (1 ),
1868
+ Data : hexutil .Bytes (common .BigToHash (big .NewInt (100 )).Bytes ()),
1869
+ BlockNumber : hexutil .Uint64 (11 ),
1870
+ BlockTimestamp : hexutil .Uint64 (0x70 ),
1871
+ Index : hexutil .Uint (1 ),
1868
1872
}},
1869
1873
Status : "0x1" ,
1870
1874
}},
0 commit comments