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

Properly implement ChargeAssetTXPayment and test it. #90

Merged
merged 10 commits into from
Sep 2, 2024

Conversation

clangenb
Copy link
Contributor

No description provided.

@clangenb clangenb changed the title Fix ChargeAssetTXPayment WIP: Fix ChargeAssetTXPayment Aug 29, 2024
@clangenb clangenb force-pushed the cl/asset-tx-payment-test branch from d299a88 to fa1ca0c Compare August 31, 2024 04:36
@@ -73,11 +74,14 @@ public async Task Extrinsic_SubmitAndWatchExtrinsicAsync()
{
var iType = new BaseVec<U8>(new U8[] { (U8)0x04, (U8)0xFF });

var assetCharge = ChargeAssetTxPayment.NewWithAsset(0, new I32(0));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This requires that we have a liquidity pool on the chain with the asset with id 0 and our native token. On paseo we have that, and this test was run against a paseo node.

@@ -50,7 +51,7 @@ public async Task SetupAsync()
catch (Exception ex)
{
Console.WriteLine($"Failed to connect to Substrate node: {ex.Message}");
Assert.Ignore("Skipped test because no active Substrate node was found on 127.0.0.1:9944");
Assert.Ignore("Skipped test because no active Substrate node was found on 127.0.0.1:9999");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The assert message mentioned the wrong port.

@clangenb clangenb changed the title WIP: Fix ChargeAssetTXPayment Properly implement ChargeAssetTXPayment and test it. Aug 31, 2024
@clangenb clangenb requested a review from darkfriend77 August 31, 2024 06:29
Copy link

sonarqubecloud bot commented Sep 2, 2024

Copy link
Member

@darkfriend77 darkfriend77 left a comment

Choose a reason for hiding this comment

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

nice

@darkfriend77 darkfriend77 merged commit 6055277 into master Sep 2, 2024
2 checks passed
@clangenb clangenb deleted the cl/asset-tx-payment-test branch September 2, 2024 16:18
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