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 {