Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
atvanguard committed Sep 3, 2023
1 parent 44072e7 commit 852a033
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 1 addition & 3 deletions precompile/contracts/juror/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
package juror

import (
"encoding/hex"
"errors"
"fmt"
"math/big"
Expand Down Expand Up @@ -541,7 +540,6 @@ func validateOrdersAndDetermineFillPrice(accessibleState contract.AccessibleStat
return nil, remainingGas, err
}

log.Info("validateOrdersAndDetermineFillPrice", "orders[0]", hex.EncodeToString(inputStruct.Data[0]), "orders[1]", hex.EncodeToString(inputStruct.Data[1]), "fillAmount", inputStruct.FillAmount)
// CUSTOM CODE STARTS HERE
bibliophile := bibliophile.NewBibliophileClient(accessibleState)
output, err := ValidateOrdersAndDetermineFillPrice(bibliophile, &inputStruct)
Expand Down Expand Up @@ -625,7 +623,7 @@ func PackValidatePlaceLimitOrder(inputStruct ValidatePlaceLimitOrderInput) ([]by
func PackValidatePlaceLimitOrderOutput(outputStruct ValidatePlaceLimitOrderOutput) ([]byte, error) {
// @todo orderHash looks ugly
// lvl=info msg=validatePlaceLimitOrder outputStruct="{Errs: Orderhash:[163 9 195 151 255 44 17 22 177 218 216 139 75 238 217 56 226 244 244 41 106 243 100 63 204 145 170 96 95 106 252 157] Res:{ReserveAmount:+6015000 Amm:0x8f86403A4DE0BB5791fa46B8e795C547942fE4Cf}}"
log.Info("validatePlaceLimitOrder", "outputStruct", outputStruct)
// log.Info("validatePlaceLimitOrder", "outputStruct", outputStruct)
return JurorABI.PackOutput("validatePlaceLimitOrder",
outputStruct.Errs,
outputStruct.Orderhash,
Expand Down
3 changes: 0 additions & 3 deletions precompile/contracts/juror/logic.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/ava-labs/subnet-evm/plugin/evm/orderbook"
b "github.com/ava-labs/subnet-evm/precompile/contracts/bibliophile"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/log"
)

type OrderType uint8
Expand Down Expand Up @@ -94,7 +93,6 @@ func ValidateOrdersAndDetermineFillPrice(bibliophile b.BibliophileClient, inputS
}

decodeStep0, err := decodeTypeAndEncodedOrder(inputStruct.Data[0])
log.Info("decodeStep0", "decodeStep0", decodeStep0, "err", err)
if err != nil {
return nil, err
}
Expand All @@ -104,7 +102,6 @@ func ValidateOrdersAndDetermineFillPrice(bibliophile b.BibliophileClient, inputS
}

decodeStep1, err := decodeTypeAndEncodedOrder(inputStruct.Data[1])
log.Info("decodeStep1", "decodeStep1", decodeStep1, "err", err)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 852a033

Please sign in to comment.