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

Default NFT Balance #42

Merged
merged 10 commits into from
Jul 13, 2023
Merged

Default NFT Balance #42

merged 10 commits into from
Jul 13, 2023

Conversation

popenta
Copy link
Contributor

@popenta popenta commented Jul 11, 2023

NFT Token balance set as 1 if no balance field provided.

Also, added the tests-devnet to run as a github action and fixed the tests.

@popenta popenta self-assigned this Jul 11, 2023
@popenta popenta marked this pull request as draft July 12, 2023 09:15
Base automatically changed from process-status to feat/proxy-tx-status July 12, 2023 09:55
@popenta popenta marked this pull request as ready for review July 12, 2023 11:09
andreibancioiu
andreibancioiu previously approved these changes Jul 12, 2023
run: npm run compile
- name: Run Unit Tests
run: |
npm run test
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@@ -61,7 +61,7 @@ export interface INetworkProvider {
/**
* Fetches the state of a transaction.
*/
getTransaction(txHash: string): Promise<TransactionOnNetwork>;
getTransaction(txHash: string, withProcessStatus?: boolean): Promise<TransactionOnNetwork>;
Copy link
Contributor

Choose a reason for hiding this comment

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

I forgot that we have this interface in the package. In my opinion it should be removed (breaking change) - in a separate PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will keep it in mind, this will be changed once the specs for sdk-network-providers are out.

assert.equal(apiResponse.RoundAtEpochStart, proxyResponse.RoundAtEpochStart);
assert.equal(apiResponse.RoundsPerEpoch, proxyResponse.RoundsPerEpoch);
// done this way because the nonces may change until both requests are executed
assert.approximately(apiResponse.HighestFinalNonce, proxyResponse.HighestFinalNonce, 1);
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting :)

src/providers.dev.net.spec.ts Outdated Show resolved Hide resolved
src/providers.dev.net.spec.ts Show resolved Hide resolved
src/tokenDefinitions.ts Outdated Show resolved Hide resolved
@popenta popenta merged commit 513bb56 into feat/proxy-tx-status Jul 13, 2023
1 check passed
@popenta popenta deleted the default-nft-balance branch July 13, 2023 09:30
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.

3 participants