@@ -42,8 +42,8 @@ func TestQueryChainMeta(t *testing.T) {
4242 coreVal0 , _ := sdk .ValAddressFromBech32 (vals [0 ].OperatorAddress )
4343 coreVal1 , _ := sdk .ValAddressFromBech32 (vals [1 ].OperatorAddress )
4444
45- require .NoError (t , utils .ExecVoteChainMeta (t , ctx , testApp , uvals [0 ], sdk .AccAddress (coreVal0 ).String (), chainId , 100_000_000_000 , 12345 , 1700000000 ))
46- require .NoError (t , utils .ExecVoteChainMeta (t , ctx , testApp , uvals [1 ], sdk .AccAddress (coreVal1 ).String (), chainId , 200_000_000_000 , 12346 , 1700000001 ))
45+ require .NoError (t , utils .ExecVoteChainMeta (t , ctx , testApp , uvals [0 ], sdk .AccAddress (coreVal0 ).String (), chainId , 100_000_000_000 , 12345 ))
46+ require .NoError (t , utils .ExecVoteChainMeta (t , ctx , testApp , uvals [1 ], sdk .AccAddress (coreVal1 ).String (), chainId , 200_000_000_000 , 12346 ))
4747
4848 querier := uexecutorkeeper .NewQuerier (testApp .UexecutorKeeper )
4949 resp , err := querier .ChainMeta (ctx , & uexecutortypes.QueryChainMetaRequest {ChainId : chainId })
@@ -52,7 +52,7 @@ func TestQueryChainMeta(t *testing.T) {
5252 require .Equal (t , chainId , resp .ChainMeta .ObservedChainId )
5353 require .Len (t , resp .ChainMeta .Prices , 2 )
5454 require .Len (t , resp .ChainMeta .ChainHeights , 2 )
55- require .Len (t , resp .ChainMeta .ObservedAts , 2 )
55+ require .Len (t , resp .ChainMeta .ChainHeights , 2 )
5656 })
5757
5858 t .Run ("all chain metas returns empty when nothing stored" , func (t * testing.T ) {
@@ -72,15 +72,13 @@ func TestQueryChainMeta(t *testing.T) {
7272 Signers : []string {"cosmos1abc" },
7373 Prices : []uint64 {100 },
7474 ChainHeights : []uint64 {1 },
75- ObservedAts : []uint64 {0 },
7675 MedianIndex : 0 ,
7776 }))
7877 require .NoError (t , testApp .UexecutorKeeper .SetChainMeta (ctx , chainId2 , uexecutortypes.ChainMeta {
7978 ObservedChainId : chainId2 ,
8079 Signers : []string {"cosmos1def" },
8180 Prices : []uint64 {200 },
8281 ChainHeights : []uint64 {2 },
83- ObservedAts : []uint64 {0 },
8482 MedianIndex : 0 ,
8583 }))
8684
@@ -103,7 +101,6 @@ func TestQueryGasPriceFromChainMeta(t *testing.T) {
103101 Signers : []string {"cosmos1abc" , "cosmos1def" },
104102 Prices : []uint64 {100_000_000_000 , 200_000_000_000 },
105103 ChainHeights : []uint64 {12345 , 12346 },
106- ObservedAts : []uint64 {17000000 , 17000001 },
107104 MedianIndex : 1 ,
108105 }))
109106
@@ -143,7 +140,6 @@ func TestQueryGasPriceFromChainMeta(t *testing.T) {
143140 ObservedChainId : chainId ,
144141 Prices : []uint64 {100 },
145142 ChainHeights : []uint64 {1 },
146- ObservedAts : []uint64 {0 },
147143 MedianIndex : 0 ,
148144 }))
149145
0 commit comments