Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
firelizzard18 committed Jul 13, 2024
1 parent 987252d commit 95f1f2d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
11 changes: 0 additions & 11 deletions pkg/types/encoding/eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,6 @@ func init() {
eip712EncoderMap["float"] = newAtomicEncoder("float", FromfloatToBytes) //Note = Float is not a valid type in EIP-712, so it is converted to a string
}

func must(err error) {
if err != nil {
panic(err)
}
}

func must2[V any](v V, err error) V {
must(err)
return v
}

type Func[T any, R any] func(T) (R, error)
type Enum interface {
SetEnumValue(id uint64) bool
Expand Down
2 changes: 1 addition & 1 deletion protocol/signature_eip712.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
// EthChainID returns the Ethereum chain ID for an Accumulate network name.
func EthChainID(name string) *big.Int {
// This exists purely for documentation purposes
const MetaMask_MaxSafeChainID = 0xFFFFFFFFFFFEC
// const MetaMask_MaxSafeChainID = 0xFFFFFFFFFFFEC

if strings.EqualFold(name, "mainnet") {
return big.NewInt(281) // 0x119
Expand Down
6 changes: 6 additions & 0 deletions test/e2e/sig_eip712_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright 2024 The Accumulate Authors
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

package e2e

import (
Expand Down

0 comments on commit 95f1f2d

Please sign in to comment.