From b77417418c65534bc8c1e465694d0c3c95c7befc Mon Sep 17 00:00:00 2001 From: lumtis Date: Wed, 20 Sep 2023 16:27:57 +0200 Subject: [PATCH] change pointer proof --- common/proof.go | 4 ++-- contrib/localnet/orchestrator/smoketest/test_deposit_eth.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/proof.go b/common/proof.go index 465d382f84..615c39b1f5 100644 --- a/common/proof.go +++ b/common/proof.go @@ -29,10 +29,10 @@ func IsErrorInvalidProof(err error) bool { } // NewEthereumProof returns a new Proof containing an Ethereum proof -func NewEthereumProof(proof ethereum.Proof) *Proof { +func NewEthereumProof(proof *ethereum.Proof) *Proof { return &Proof{ Proof: &Proof_EthereumProof{ - EthereumProof: &proof, + EthereumProof: proof, }, } } diff --git a/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go b/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go index 420a8bc7f3..cea789d273 100644 --- a/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go +++ b/contrib/localnet/orchestrator/smoketest/test_deposit_eth.go @@ -123,7 +123,7 @@ func (sm *SmokeTest) TestDepositEtherIntoZRC20() { BlockHash: blockHash.Hex(), TxIndex: int64(txIndex), TxHash: txHash.Hex(), - Proof: common.NewEthereumProof(*txProof), + Proof: common.NewEthereumProof(txProof), ChainId: 0, }) if err != nil {