Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Commit

Permalink
Fixed staticcheck errors after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jalextowle committed Aug 26, 2020
1 parent e18a21b commit cbf42e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion common/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/0xProject/0x-mesh/zeroex"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/ethereum/go-ethereum/common/math"
"github.com/ethereum/go-ethereum/core/types"
)
Expand Down Expand Up @@ -197,5 +198,5 @@ func BytesToHex(b []byte) string {
if len(b) == 0 {
return "0x"
}
return common.ToHex(b)
return hexutil.Encode(b)
}
2 changes: 1 addition & 1 deletion core/ordersync/ordersync_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/0xProject/0x-mesh/p2p"
"github.com/0xProject/0x-mesh/scenario"
"github.com/0xProject/0x-mesh/zeroex"
peer "github.com/libp2p/go-libp2p-peer"
"github.com/libp2p/go-libp2p-core/peer"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit cbf42e6

Please sign in to comment.