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

linter and grammar fixes #53

Merged
merged 1 commit into from
Oct 11, 2022
Merged

linter and grammar fixes #53

merged 1 commit into from
Oct 11, 2022

Conversation

bogdan-rosianu
Copy link
Contributor

fixed some linter and grammar issues

@bogdan-rosianu bogdan-rosianu added the cleanup Generic cleanup (e.g. removing deprecated functionality). label Oct 11, 2022
@bogdan-rosianu bogdan-rosianu self-assigned this Oct 11, 2022
@@ -9,7 +9,8 @@ import (
"github.com/ElrondNetwork/rosetta/server/resources"
)

type networkProvider interface {
// NetworkProvider defines the actions that need to be performed by the component that handles network data fetching
type NetworkProvider interface {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it should have been private (un-exported), though.

Copy link
Contributor Author

@bogdan-rosianu bogdan-rosianu Oct 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, according to the linter, since you return an unexported item within an exported function

@@ -61,9 +61,9 @@ func TestTransactionsTransformer_UnsignedTxToRosettaTx(t *testing.T) {

txsInBlock := []*transaction.ApiTransactionResult{refundTx, moveBalanceTx}

rosettaFefundTx := transformer.unsignedTxToRosettaTx(refundTx, txsInBlock)
rosettaRefundTx := transformer.unsignedTxToRosettaTx(refundTx, txsInBlock)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@bogdan-rosianu bogdan-rosianu merged commit 6b92c67 into main Oct 11, 2022
@andreibancioiu andreibancioiu deleted the lint-grammar-fixes branch October 11, 2022 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Generic cleanup (e.g. removing deprecated functionality).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants