Skip to content

Commit

Permalink
appease linter
Browse files Browse the repository at this point in the history
  • Loading branch information
EricBolten committed Dec 15, 2023
1 parent 2ac8d03 commit 6006ef4
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions integration_tests/axelarcork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
////////////////

arbitrumChainName := "arbitrum"
arbitrumChainId := uint64(42161)
arbitrumChainID := uint64(42161)
proxyAddress := "0xEe75bA2C81C04DcA4b0ED6d1B7077c188FEde4d2"

// add chain configuration
Expand All @@ -50,7 +50,7 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
Description: "adding an arbitrum chain config",
ChainConfiguration: &types.ChainConfiguration{
Name: arbitrumChainName,
Id: arbitrumChainId,
Id: arbitrumChainID,
ProxyAddress: proxyAddress,
},
}
Expand All @@ -76,15 +76,15 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
s.Require().Len(chainConfigurationsResponse.Configurations, 1)
chainConfig := chainConfigurationsResponse.Configurations[0]
s.Require().Equal(chainConfig.Name, arbitrumChainName)
s.Require().Equal(chainConfig.Id, arbitrumChainId)
s.Require().Equal(chainConfig.Id, arbitrumChainID)
s.Require().Equal(chainConfig.ProxyAddress, proxyAddress)

// add managed cellar
s.T().Log("Creating AddAxelarManagedCellarIDsProposal for counter contract")
addAxelarManagedCellarIDsProp := types.AddAxelarManagedCellarIDsProposal{
Title: "add the counter contract as axelar cellar",
Description: "arbitrum counter contract",
ChainId: arbitrumChainId,
ChainId: arbitrumChainID,
CellarIds: &types.CellarIDSet{
Ids: []string{
counterContract.Hex(),
Expand All @@ -105,10 +105,10 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
s.Require().NoError(err, "Unable to create AddAxelarManagedCellarIDsProposal")

s.submitAndVoteForAxelarProposal(proposerCtx, orch0ClientCtx, propID, addAxelarManagedCellarIDsPropMsg)
propID++
//propID++

s.T().Log("Verifying CellarID correctly added")
cellarIDsResponse, err := axelarcorkQueryClient.QueryCellarIDsByChainID(context.Background(), &types.QueryCellarIDsByChainIDRequest{ChainId: arbitrumChainId})
cellarIDsResponse, err := axelarcorkQueryClient.QueryCellarIDsByChainID(context.Background(), &types.QueryCellarIDsByChainIDRequest{ChainId: arbitrumChainID})
s.Require().NoError(err)
s.Require().Len(cellarIDsResponse.CellarIds, 1)
s.Require().Equal(cellarIDsResponse.CellarIds[0], counterContract.Hex())
Expand All @@ -125,7 +125,7 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
s.T().Logf("Scheduling axelar cork calls for height %d", targetBlockHeight)
axelarCork := types.AxelarCork{
EncodedContractCall: ABIEncodedInc(),
ChainId: arbitrumChainId,
ChainId: arbitrumChainID,
TargetContractAddress: counterContract.Hex(),
Deadline: deadline,
}
Expand All @@ -137,7 +137,7 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
clientCtx, err := s.chain.clientContext("tcp://localhost:26657", orch.keyring, "orch", orch.address())
s.Require().NoError(err)
axelarCorkMsg, err := types.NewMsgScheduleAxelarCorkRequest(
arbitrumChainId,
arbitrumChainID,
ABIEncodedInc(),
counterContract,
deadline,
Expand All @@ -156,15 +156,15 @@ func (s *IntegrationTestSuite) TestAxelarCork() {
}

s.T().Log("Verifying scheduled axelar corks were created")
scheduledCorksResponse, err := axelarcorkQueryClient.QueryScheduledCorks(context.Background(), &types.QueryScheduledCorksRequest{ChainId: arbitrumChainId})
scheduledCorksResponse, err := axelarcorkQueryClient.QueryScheduledCorks(context.Background(), &types.QueryScheduledCorksRequest{ChainId: arbitrumChainID})
s.Require().NoError(err)
s.Require().Len(scheduledCorksResponse.Corks, 4)
cork0 := scheduledCorksResponse.Corks[0]
//cork1 := scheduledCorksResponse.Corks[1]
//cork2 := scheduledCorksResponse.Corks[2]
//cork3 := scheduledCorksResponse.Corks[3]
s.Require().Equal(cork0.Cork.EncodedContractCall, ABIEncodedInc())
s.Require().Equal(cork0.Cork.ChainId, arbitrumChainId)
s.Require().Equal(cork0.Cork.ChainId, arbitrumChainID)
s.Require().Equal(cork0.Cork.TargetContractAddress, counterContract.Hex())
s.Require().Equal(cork0.Cork.Deadline, deadline)
s.Require().Equal(cork0.BlockHeight, targetBlockHeight)
Expand Down

0 comments on commit 6006ef4

Please sign in to comment.