Skip to content

Commit

Permalink
remove redundant var
Browse files Browse the repository at this point in the history
  • Loading branch information
cam-schultz committed Dec 19, 2023
1 parent 1f89c95 commit 40da608
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/flows/block_hash_publish_receive.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"encoding/hex"

"github.com/ava-labs/subnet-evm/accounts/abi/bind"
blockhashpublisher "github.com/ava-labs/teleporter/abi-bindings/go/CrossChainApplications/VerifiedBlockHash/BlockHashPublisher"
"github.com/ava-labs/teleporter/tests/interfaces"
"github.com/ava-labs/teleporter/tests/utils"
. "github.com/onsi/gomega"
Expand Down Expand Up @@ -45,12 +44,9 @@ func BlockHashPublishReceive(network interfaces.Network) {

receipt := utils.WaitForTransactionSuccess(ctx, subnetAInfo, tx)

blockHashPublisher, err := blockhashpublisher.NewBlockHashPublisher(publisherAddress, subnetAInfo.RPCClient)
Expect(err).Should(BeNil())

publishEvent, err := utils.GetEventFromLogs(
receipt.Logs,
blockHashPublisher.ParsePublishBlockHash)
publisher.ParsePublishBlockHash)
Expect(err).Should(BeNil())
expectedBlockNumber := publishEvent.BlockHeight
expectedBlockHash := publishEvent.BlockHash
Expand Down

0 comments on commit 40da608

Please sign in to comment.