Skip to content

Commit

Permalink
Merge pull request #441 from vegaprotocol/upgrade-contracts
Browse files Browse the repository at this point in the history
chore: update given contract changes and both bridges signing the same
  • Loading branch information
jeremyletang authored Aug 16, 2024
2 parents 0128aec + d4ce06a commit b044a95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
toolchain go1.21.5

require (
code.vegaprotocol.io/vega v0.77.6
code.vegaprotocol.io/vega v0.77.9-0.20240815143448-939926c92304
github.com/BurntSushi/toml v1.3.2
github.com/Masterminds/sprig v2.22.0+incompatible
github.com/blang/semver v3.5.1+incompatible
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ code.vegaprotocol.io/quant v0.2.5 h1:8h+TTHdz1LCO4oGXt8mbowXszd8CQP1MHlJOkthUp1E
code.vegaprotocol.io/quant v0.2.5/go.mod h1:HEzOoPKj8OIP49r9AZYeo5281M5ygeGWxopwvt8k6Es=
code.vegaprotocol.io/vega v0.77.6 h1:GZfnkzXyt7NXDMuBCdLMW3DW6pJgtS9yQPk8U6zgwwc=
code.vegaprotocol.io/vega v0.77.6/go.mod h1:6Qz3v5mEoGHtkBpOTHwg1lfWmV1drAiQ05TtM7OJMh8=
code.vegaprotocol.io/vega v0.77.9-0.20240815143448-939926c92304 h1:aGknTk26i/71z/bQroUvra1CHEOkOyOP9paTfi/FZMQ=
code.vegaprotocol.io/vega v0.77.9-0.20240815143448-939926c92304/go.mod h1:6Qz3v5mEoGHtkBpOTHwg1lfWmV1drAiQ05TtM7OJMh8=
contrib.go.opencensus.io/exporter/prometheus v0.4.2 h1:sqfsYl5GIY/L570iT+l93ehxaWJs2/OwXtiWwew3oAg=
contrib.go.opencensus.io/exporter/prometheus v0.4.2/go.mod h1:dvEHbiKmgvbr5pjaF9fpw1KeYcjrnC1J8B+JKjsZyRQ=
dmitri.shuralyov.com/app/changes v0.0.0-20180602232624-0a106ad413e3/go.mod h1:Yl+fi1br7+Rr3LqpNJf1/uxUdtRUV+Tnj0o93V2B9MU=
Expand Down

0 comments on commit b044a95

Please sign in to comment.