Skip to content

Commit

Permalink
logging nit
Browse files Browse the repository at this point in the history
  • Loading branch information
parodime authored Nov 18, 2024
1 parent 13d978c commit acb1919
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/rfq/e2e/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,23 +367,23 @@ func (i *IntegrationSuite) setupRelayer() {
txContext := backend.GetTxContext(i.GetTestContext(), metadata.OwnerPtr())
proverRole, err := rfqContract.PROVERROLE(&bind.CallOpts{Context: i.GetTestContext()})
if err != nil {
return fmt.Errorf("could not get relayer role: %w", err)
return fmt.Errorf("could not get prover role: %w", err)
}

tx, err := rfqContract.GrantRole(txContext.TransactOpts, proverRole, i.relayerWallet.Address())
if err != nil {
return fmt.Errorf("could not grant role: %w", err)
return fmt.Errorf("could not grant prover role: %w", err)
}
backend.WaitForConfirmation(i.GetTestContext(), tx)

quoterRole, err := rfqContract.QUOTERROLE(&bind.CallOpts{Context: i.GetTestContext()})
if err != nil {
return fmt.Errorf("could not get relayer role: %w", err)
return fmt.Errorf("could not get quoter role: %w", err)
}

tx, err = rfqContract.GrantRole(txContext.TransactOpts, quoterRole, i.relayerWallet.Address())
if err != nil {
return fmt.Errorf("could not grant role: %w", err)
return fmt.Errorf("could not grant quoter role: %w", err)
}
backend.WaitForConfirmation(i.GetTestContext(), tx)

Expand Down

0 comments on commit acb1919

Please sign in to comment.