diff --git a/x/avs/keeper/bls_test.go b/x/avs/keeper/bls_test.go index 8c0c1fd00..f8846a888 100644 --- a/x/avs/keeper/bls_test.go +++ b/x/avs/keeper/bls_test.go @@ -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[:] @@ -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) @@ -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) diff --git a/x/avs/keeper/submit_task_test.go b/x/avs/keeper/submit_task_test.go index 903650cd9..fbcd7c601 100644 --- a/x/avs/keeper/submit_task_test.go +++ b/x/avs/keeper/submit_task_test.go @@ -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) diff --git a/x/avs/keeper/task.go b/x/avs/keeper/task.go index a80aa70cc..37a04a83c 100644 --- a/x/avs/keeper/task.go +++ b/x/avs/keeper/task.go @@ -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" diff --git a/x/avs/types/types.go b/x/avs/types/types.go index 874944d28..0691db064 100644 --- a/x/avs/types/types.go +++ b/x/avs/types/types.go @@ -96,7 +96,7 @@ func GenerateAVSAddr(chainID string) common.Address { } type TaskResponse struct { - TaskId uint64 + TaskID uint64 NumberSum *big.Int }