Skip to content

Commit

Permalink
Merge branch 'fix/rfq-ci-flake' of github.com:synapsecns/sanguine int…
Browse files Browse the repository at this point in the history
…o fix/rfq-ci-flake
  • Loading branch information
dwasse committed Aug 28, 2024
2 parents fb3a41a + 25bf851 commit 669d41a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions services/rfq/e2e/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,12 @@ func addressToBytes32(addr common.Address) [32]byte {
return buf
}

func (i *IntegrationSuite) isDeployed(ctx context.Context, backend backends.SimulatedTestBackend, address common.Address) bool {
code, err := backend.CodeAt(ctx, address, nil)
i.NoError(err)
return len(code) > 0
}

func (i *IntegrationSuite) waitForContractDeployment(ctx context.Context, backend backends.SimulatedTestBackend, address common.Address) error {
// nolint: wrapcheck
return retry.WithBackoff(ctx, func(_ context.Context) error {
code, err := backend.CodeAt(ctx, address, nil)
if err != nil {
return err
return fmt.Errorf("could not get code: %w", err)
}
if len(code) == 0 {
return fmt.Errorf("contract not deployed at %s", address.Hex())
Expand Down

0 comments on commit 669d41a

Please sign in to comment.