Skip to content

Commit

Permalink
fix error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
bjartek committed Mar 5, 2024
1 parent 153b649 commit 862c5e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions state.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,14 +458,14 @@ func (o *OverflowState) CreateAccountsE(ctx context.Context) (*OverflowState, er

o.Logger.Info(fmt.Sprintf("Creating account %s", account.Name))
newA, _, err := o.Flowkit.CreateAccount(ctx, signerAccount, keys)
if account.Address.Hex() != newA.Address.Hex() {
return nil, fmt.Errorf("the configured address for this account is %s but the created one is %s, consider reordering addresses in flow.json", account.Address.Hex(), newA.Address.Hex())
}

if err != nil {
return nil, err
}

if account.Address.Hex() != newA.Address.Hex() {
return nil, fmt.Errorf("the configured address for this account is %s but the created one is %s, consider reordering addresses in flow.json", account.Address.Hex(), newA.Address.Hex())
}

messages := []string{
fmt.Sprintf("%v", emoji.Person),
"Created account:",
Expand Down

0 comments on commit 862c5e0

Please sign in to comment.