Skip to content

Commit

Permalink
migrate oever tests to juror
Browse files Browse the repository at this point in the history
  • Loading branch information
atvanguard committed Sep 13, 2023
1 parent 4257cb3 commit 6f54848
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 712 deletions.
14 changes: 5 additions & 9 deletions precompile/contracts/bibliophile/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@ func validateLiquidationOrderAndDetermineFillPrice(accessibleState contract.Acce
}

// CUSTOM CODE STARTS HERE
output, err := ValidateLiquidationOrderAndDetermineFillPrice(accessibleState.GetStateDB(), &inputStruct)
if err != nil {
return nil, remainingGas, err
}
_ = inputStruct
output := big.NewInt(0)
packedOutput, err := PackValidateLiquidationOrderAndDetermineFillPriceOutput(output)
if err != nil {
return nil, remainingGas, err
Expand Down Expand Up @@ -274,11 +272,9 @@ func validateOrdersAndDetermineFillPrice(accessibleState contract.AccessibleStat
}

// CUSTOM CODE STARTS HERE
output, err := ValidateOrdersAndDetermineFillPrice(accessibleState.GetStateDB(), &inputStruct)
if err != nil {
return nil, remainingGas, err
}
packedOutput, err := PackValidateOrdersAndDetermineFillPriceOutput(*output)
_ = inputStruct
output := ValidateOrdersAndDetermineFillPriceOutput{}
packedOutput, err := PackValidateOrdersAndDetermineFillPriceOutput(output)
if err != nil {
return nil, remainingGas, err
}
Expand Down
Loading

0 comments on commit 6f54848

Please sign in to comment.