Skip to content

Commit

Permalink
Don't capitalize function args
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 12, 2023
1 parent 0a165d2 commit 3a6d9f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1890,22 +1890,22 @@ const (
)

func (tr TestRun) lightClientAttack(
Validator ValidatorID,
Chain ChainID,
validator ValidatorID,
chain ChainID,
attackType LightClientAttackType,
) {
if !tr.useCometmock {
log.Fatal("light client attack is only supported with CometMock")
}
validatorPrivateKeyAddress := tr.GetValidatorPrivateKeyAddress(Chain, Validator)
validatorPrivateKeyAddress := tr.GetValidatorPrivateKeyAddress(chain, validator)

method := "cause_light_client_attack"
params := fmt.Sprintf(`{"private_key_address":"%s", "misbehaviour_type": "%s"}`, validatorPrivateKeyAddress, attackType)

address := tr.getQueryNodeRPCAddress(Chain)
address := tr.getQueryNodeRPCAddress(chain)

tr.curlJsonRPCRequest(method, params, address)
tr.waitBlocks(Chain, 1, 10*time.Second)
tr.waitBlocks(chain, 1, 10*time.Second)
}

type assignConsumerPubKeyAction struct {
Expand Down

0 comments on commit 3a6d9f1

Please sign in to comment.