Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement simplified faucet #2391

Merged
merged 21 commits into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Errorf error
  • Loading branch information
jkrvivian committed Aug 23, 2022
commit ee985f08adff6c8b73017d21cad50303a05535f0
2 changes: 1 addition & 1 deletion plugins/faucet/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (f *FaucetConnector) SendTransaction(tx *devnetvm.Transaction) (err error)

_, err = blocklayer.AwaitBlockToBeBooked(issueTransaction, tx.ID(), maxTxBookedAwaitTime)
if err != nil {
return errors.Errorf("%w: tx %s", err, tx.ID().String())
return errors.Errorf("%v: tx %s", err, tx.ID().String())
}
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/faucet/faucet.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (f *Faucet) handleFaucetRequest(p *faucet.Payload) (*devnetvm.Transaction,
return tx, nil
}
if attempt > maxWaitAttempts {
return nil, errors.Errorf("TX %s is not confirmed in time")
return nil, errors.Errorf("TX %s is not confirmed in time", tx.ID())
}
attempt++
}
Expand Down