Skip to content

Commit

Permalink
fix: add chainID to vscSendTimestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaru Wang committed Jun 23, 2023
1 parent 27a50f2 commit 9fc44d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions x/ccv/provider/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,7 @@ func (k Keeper) GetFirstVscSendTimestamp(ctx sdk.Context, chainID string) (vscSe
}

return types.VscSendTimestamp{
ChainId: chainID,
VscId: vscID,
Timestamp: ts,
}, true
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func TestVscSendTimestamp(t *testing.T) {
expectedGetAllOrder := []types.VscSendTimestamp{}
for _, tc := range testCases {
if tc.chainID == chainID {
expectedGetAllOrder = append(expectedGetAllOrder, types.VscSendTimestamp{VscId: tc.vscID, Timestamp: tc.ts})
expectedGetAllOrder = append(expectedGetAllOrder, types.VscSendTimestamp{ChainId: tc.chainID, VscId: tc.vscID, Timestamp: tc.ts})
}
}
// sorting by vscID
Expand Down

0 comments on commit 9fc44d5

Please sign in to comment.