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

Refactor variables #1481

Merged
merged 2 commits into from
Feb 28, 2023
Merged

Refactor variables #1481

merged 2 commits into from
Feb 28, 2023

Conversation

petreze
Copy link
Contributor

@petreze petreze commented Feb 27, 2023

Description:
Make variables clearer

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Petar Tonev <[email protected]>
@@ -463,30 +463,30 @@ describe("TokenNftAllowances", function () {
.approveTokenNftAllowanceAllSerials(
nftTokenId,
env.operatorId,
spenderAccountId
delegatingSpenderAccountId
)
.execute(env.client)
).getReceipt(env.client);

const spenderClient = Client.forLocalNode().setOperator(

Choose a reason for hiding this comment

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

This makes the test executable only against localnode. Also I don't see where we close the client.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Both fixed with next commit

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
6.4% 6.4% Duplication

@petreze petreze requested a review from bamzedev February 28, 2023 15:19
@codecov
Copy link

codecov bot commented Feb 28, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.09 ⚠️

Comparison is base (2708b80) 83.47% compared to head (fa0ec77) 83.39%.

❗ Current head fa0ec77 differs from pull request most recent head 880003c. Consider uploading reports for the commit 880003c to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1481      +/-   ##
===========================================
- Coverage    83.47%   83.39%   -0.09%     
===========================================
  Files          295      295              
  Lines        73348    73348              
===========================================
- Hits         61228    61165      -63     
- Misses       12120    12183      +63     
Impacted Files Coverage Δ
src/network/AddressBookQuery.js 66.78% <0.00%> (-20.72%) ⬇️
src/channel/NodeMirrorChannel.js 97.14% <0.00%> (-2.86%) ⬇️
src/client/Client.js 86.02% <0.00%> (-0.55%) ⬇️
src/client/ManagedNetwork.js 93.64% <0.00%> (+0.36%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@petreze petreze merged commit 697a2ee into develop Feb 28, 2023
@petreze petreze deleted the fix/nft-allowances-refactor branch February 28, 2023 15:36
monokaijs pushed a commit to monostarter/u2u-sdk-js that referenced this pull request Jul 5, 2023
* refactor variables

Signed-off-by: Petar Tonev <[email protected]>

* refactor variables and use the same client

Signed-off-by: Petar Tonev <[email protected]>

---------

Signed-off-by: Petar Tonev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants