Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
trestinlsd committed Aug 21, 2024
1 parent 326a200 commit feb8b3f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
6 changes: 3 additions & 3 deletions x/avs/keeper/bls_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (suite *AVSTestSuite) TestOperator_pubkey() {
suite.NoError(err)
suite.Equal(publicKey.Marshal(), pub.PubKey)

taskRes := types.TaskResponse{TaskId: 1, NumberSum: big.NewInt(100)}
taskRes := types.TaskResponse{TaskID: 1, NumberSum: big.NewInt(100)}

msg, _ := types.GetTaskResponseDigest(taskRes)
msgBytes := msg[:]
Expand All @@ -43,7 +43,7 @@ func (suite *AVSTestSuite) TestOperator_pubkey() {
}

func (suite *AVSTestSuite) Test_hash() {
taskres := types.TaskResponse{TaskId: 1, NumberSum: big.NewInt(100)}
taskres := types.TaskResponse{TaskID: 1, NumberSum: big.NewInt(100)}
jsonData, err := types.MarshalTaskResponse(taskres)
suite.NoError(err)

Expand All @@ -54,7 +54,7 @@ func (suite *AVSTestSuite) Test_hash() {

// For deterministic result(msg), aggregate signatures and verify them
func (suite *AVSTestSuite) Test_bls_agg() {
taskres := types.TaskResponse{TaskId: 1, NumberSum: big.NewInt(100)}
taskres := types.TaskResponse{TaskID: 1, NumberSum: big.NewInt(100)}
jsonData, _ := types.MarshalTaskResponse(taskres)
msg := crypto.Keccak256Hash(jsonData)
privateKeys := make([]blscommon.SecretKey, 4)
Expand Down
2 changes: 1 addition & 1 deletion x/avs/keeper/submit_task_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (suite *AVSTestSuite) prepare() {

func (suite *AVSTestSuite) TestSubmitTask() {
suite.prepare()
taskRes := avstypes.TaskResponse{TaskId: 1, NumberSum: big.NewInt(100)}
taskRes := avstypes.TaskResponse{TaskID: 1, NumberSum: big.NewInt(100)}
jsonData, err := avstypes.MarshalTaskResponse(taskRes)
suite.NoError(err)
_ = crypto.Keccak256Hash(jsonData)
Expand Down
3 changes: 2 additions & 1 deletion x/avs/keeper/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"bytes"
"encoding/hex"
"fmt"
"github.com/ethereum/go-ethereum/crypto"
"strconv"

"github.com/ethereum/go-ethereum/crypto"

errorsmod "cosmossdk.io/errors"

assetstype "github.com/ExocoreNetwork/exocore/x/assets/types"
Expand Down
2 changes: 1 addition & 1 deletion x/avs/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func GenerateAVSAddr(chainID string) common.Address {
}

type TaskResponse struct {
TaskId uint64
TaskID uint64
NumberSum *big.Int
}

Expand Down

0 comments on commit feb8b3f

Please sign in to comment.