Skip to content

Commit

Permalink
chore: always pass in chain-id now
Browse files Browse the repository at this point in the history
  • Loading branch information
wwestgarth committed Aug 16, 2024
1 parent 5118cbb commit 68699ed
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions ethereum/multisig.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ func (ec EthereumMultisigClient) multisigSetThreshold(ctx context.Context, sessi
return fmt.Errorf("failed to get nonce: %w", err)
}

var chainID *int64
if !ec.isPrimary {
chainID = &ec.chainID
}

chainID := &ec.chainID
signature, err := setThresholdSignature(
ec.vegaBinary,
newThreshold,
Expand Down Expand Up @@ -222,10 +218,7 @@ func (ec EthereumMultisigClient) multisigAddSigners(ctx context.Context, session
return fmt.Errorf("failed to get nonce: %w", err)
}

var chainID *int64
if !ec.isPrimary {
chainID = &ec.chainID
}
chainID := &ec.chainID
signature, err := addSignerSignature(
ec.vegaBinary,
validator.KeyPair.Address,
Expand Down Expand Up @@ -273,10 +266,7 @@ func (ec EthereumMultisigClient) multisigRemoveSigner(ctx context.Context, sessi
return fmt.Errorf("failed to get nonce: %w", err)
}

var chainID *int64
if !ec.isPrimary {
chainID = &ec.chainID
}
chainID := &ec.chainID
signature, err := removeSignerSignature(
ec.vegaBinary,
oldSigner,
Expand Down

0 comments on commit 68699ed

Please sign in to comment.