Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Merge branch 'bump-geth-sdk' into allow-msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear authored Nov 6, 2023
2 parents b02c4f0 + 34be780 commit f67ff31
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions e2e/localnet/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package utils

import (
"context"
"math/big"
"time"

"github.com/ethereum/go-ethereum/accounts/abi/bind"
Expand Down Expand Up @@ -100,10 +101,13 @@ func DeployERC20(
ctx, cancel := context.WithTimeout(context.Background(), TxTimeout)
defer cancel()

var addr common.Address
addr, err = bind.WaitDeployed(ctx, client, tx)
_, err = bind.WaitMined(ctx, client, tx)
Expect(err).ToNot(HaveOccurred())
Expect(addr).To(Equal(expectedAddr))

time.Sleep(500 * time.Millisecond) //nolint:gomnd // temporary.
code, err := client.CodeAt(ctx, expectedAddr, big.NewInt(-1))
Expect(err).ToNot(HaveOccurred())
Expect(code).ToNot(BeEmpty())

return contract, expectedAddr
}

0 comments on commit f67ff31

Please sign in to comment.