continue formatting

This commit is contained in:
Omar
2026-07-15 05:14:40 +03:00
parent 16ddc0837a
commit b1922fc663
29 changed files with 1115 additions and 723 deletions
+6 -3
View File
@@ -48,7 +48,8 @@ void main() {
group("getCanonicalCryptoAmount", () {
test("Amount should not change for Bitcoin", () {
final amount = amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btc);
final amount =
amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btc);
expect(amount, "0.000001");
});
@@ -58,7 +59,8 @@ void main() {
});
test("Amount should not change for Bitcoin", () {
final amount = amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btcln);
final amount =
amountParsingProxy.getCanonicalCryptoAmount("0.000001", CryptoCurrency.btcln);
expect(amount, "0.000001");
});
@@ -118,7 +120,8 @@ void main() {
});
test("Amount should be formated to Satoshi for Bitcoin Lightning", () {
final amount = amountParsingProxy.getDisplayCryptoAmount("0.000001", CryptoCurrency.btcln);
final amount =
amountParsingProxy.getDisplayCryptoAmount("0.000001", CryptoCurrency.btcln);
expect(amount, "100");
});
@@ -48,7 +48,8 @@ void main() {
});
test('detects Lightning invoice', () {
const invoice = 'lnbc1u1p3zj7j8pp5vkwxc4vxfzgzxcjzk5ksp0l7jgrgzmqxqmexxp8e8gfqk6s0knnqdlc35hsggzypnxw7xxxnrvd3hscqzpgxqrrsssp5txs5g8vkdmdtnm8g5v9m3u094nnxkl0jjf38jj5xn2pptxlqkwn7gpgfkt7q6z0frcj7vjy4mv7659hccln2e0gzt4ufnsukxcnknh7e58kwnr8pk6kgv6vrghcpld2z5n';
const invoice =
'lnbc1u1p3zj7j8pp5vkwxc4vxfzgzxcjzk5ksp0l7jgrgzmqxqmexxp8e8gfqk6s0knnqdlc35hsggzypnxw7xxxnrvd3hscqzpgxqrrsssp5txs5g8vkdmdtnm8g5v9m3u094nnxkl0jjf38jj5xn2pptxlqkwn7gpgfkt7q6z0frcj7vjy4mv7659hccln2e0gzt4ufnsukxcnknh7e58kwnr8pk6kgv6vrghcpld2z5n';
final result = UniversalAddressDetector.detectAddress(invoice);
expect(result.isValid, true);