-
Notifications
You must be signed in to change notification settings - Fork 375
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
feat(gnoclient): Add Transaction and PendingTransaction methods #2643
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2643 +/- ##
==========================================
+ Coverage 60.44% 60.45% +0.01%
==========================================
Files 563 563
Lines 75159 75183 +24
==========================================
+ Hits 45427 45453 +26
+ Misses 26343 26340 -3
- Partials 3389 3390 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
d96bda5
to
ddf5e4a
Compare
|
||
// GetTransaction retrieves the transaction details for a given transaction hash | ||
// The provided hash must be a valid base64 encoded string | ||
func (c *Client) Transaction(hash string) (*ctypes.ResultTx, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment says "GetTransaction". Should the function name be GetTransaction
?
// PendingTransaction retrieves unconfirmed transactions from the blockchain | ||
// The `limit` parameter specifies the maximum number of unconfirmed transactions to return | ||
// If `limit` is 0, it retrieves all unconfirmed transactions | ||
func (c *Client) PendingTransaction(limit int) (*ctypes.ResultUnconfirmedTxs, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should this be named GetPendingTransaction
, similar to GetTransaction
.
@linhpn99 Is this PR still being worked on? |
I'm no longer continuing with this, but I’m sure the others are still waiting for a review and ready to keep developing |
This PR adds functionality for retrieving transaction by hash from the blockchain and handling unconfirmed transactions.This PR includes :
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description