Skip to content

Commit

Permalink
Fix broken CI and unit tests (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcwik committed Aug 30, 2023
1 parent 1e63a1a commit ad9a248
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mempool/dydx_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ func IsClobOrderTransaction(
return false
}

if cosmosTx.Body != nil && len(cosmosTx.Body.Messages) == 1 &&
if cosmosTx.Body != nil &&
len(cosmosTx.Body.Messages) == 1 &&
(cosmosTx.Body.Messages[0].TypeUrl == "/dydxprotocol.clob.MsgPlaceOrder" ||
cosmosTx.Body.Messages[0].TypeUrl == "/dydxprotocol.clob.MsgCancelOrder") {
return true
Expand Down
1 change: 1 addition & 0 deletions state/execution_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,7 @@ func TestFinalizeBlockValidatorUpdatesResultingInEmptySet(t *testing.T) {
stateStore := sm.NewStore(stateDB, sm.StoreOptions{
DiscardABCIResponses: false,
})
// dYdX fork: Apply block should lock/unlock the mempool.
mp := &mpmocks.Mempool{}
mp.On("Lock").Return()
mp.On("Unlock").Return()
Expand Down

0 comments on commit ad9a248

Please sign in to comment.