From aa8af539bae7ee504fd9d938cfe4fbac1a6f9779 Mon Sep 17 00:00:00 2001 From: CHAMI Rachid Date: Thu, 26 Oct 2023 21:18:24 +0200 Subject: [PATCH] fix: update QGB to Blobstream in benchmark (#561) --- benchmark/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmark/main.go b/benchmark/main.go index 50f4e5b8..d684622d 100644 --- a/benchmark/main.go +++ b/benchmark/main.go @@ -10,11 +10,11 @@ import ( "syscall" "time" + wrappers "github.com/celestiaorg/blobstream-contracts/v3/wrappers/Blobstream.sol" "github.com/celestiaorg/celestia-app/x/qgb/types" "github.com/celestiaorg/orchestrator-relayer/evm" "github.com/celestiaorg/orchestrator-relayer/store" - types2 "github.com/celestiaorg/orchestrator-relayer/types" - wrappers "github.com/celestiaorg/quantum-gravity-bridge/v2/wrappers/QuantumGravityBridge.sol" + orchtypes "github.com/celestiaorg/orchestrator-relayer/types" "github.com/ethereum/go-ethereum/accounts" "github.com/ethereum/go-ethereum/accounts/keystore" ethcmn "github.com/ethereum/go-ethereum/common" @@ -105,7 +105,7 @@ func DeployContractAndSubmitDataCommitment() error { Time: time.Now(), } - address, tx, bridge, err := evmClient.DeployQGBContract(txOpts, backend, vs, vs.Nonce, true) + address, tx, bridge, err := evmClient.DeployBlobstreamContract(txOpts, backend, vs, vs.Nonce, true) if err != nil { logger.Error("failed to deploy QGB contract") return err @@ -119,7 +119,7 @@ func DeployContractAndSubmitDataCommitment() error { txOpts.Nonce.Add(txOpts.Nonce, big.NewInt(1)) commitment := []byte{0x12} - dataRootHash := types2.DataCommitmentTupleRootSignBytes(big.NewInt(int64(2)), commitment) + dataRootHash := orchtypes.DataCommitmentTupleRootSignBytes(big.NewInt(int64(2)), commitment) signatures := make([]wrappers.Signature, NumberOfValidators) cumulatedPower := int64(0) for i, val := range valsetValidators {