diff --git a/assets/zano_node_list.yml b/assets/zano_node_list.yml index 8ebebe5abb..f7b874fcbc 100644 --- a/assets/zano_node_list.yml +++ b/assets/zano_node_list.yml @@ -2,6 +2,6 @@ uri: 37.27.100.59:10500 useSSL: false - - uri: zano.cakewallet.com:443 + uri: zano.cakewallet.com:11211 is_default: true - useSSL: true \ No newline at end of file + useSSL: false \ No newline at end of file diff --git a/cw_zano/lib/model/zano_transaction_info.dart b/cw_zano/lib/model/zano_transaction_info.dart index 247972c85c..d643e92070 100644 --- a/cw_zano/lib/model/zano_transaction_info.dart +++ b/cw_zano/lib/model/zano_transaction_info.dart @@ -23,11 +23,11 @@ class ZanoTransactionInfo extends TransactionInfo { ZanoTransactionInfo.fromTransfer(Transfer transfer, {required int confirmations, - required bool isIncome, - required String assetId, - required BigInt amount, - this.tokenSymbol = 'ZANO', - this.decimalPoint = ZanoFormatter.defaultDecimalPoint}) + required bool isIncome, + required String assetId, + required BigInt amount, + this.tokenSymbol = 'ZANO', + this.decimalPoint = ZanoFormatter.defaultDecimalPoint}) : id = transfer.txHash, height = transfer.height, direction = isIncome ? TransactionDirection.incoming : TransactionDirection.outgoing, @@ -37,13 +37,17 @@ class ZanoTransactionInfo extends TransactionInfo { fee = transfer.fee, confirmations = confirmations, isPending = confirmations < 10, - recipientAddress = transfer.remoteAddresses.isNotEmpty ? transfer.remoteAddresses.first : '' { + recipientAddress = transfer.remoteAddresses.isNotEmpty + ? transfer.remoteAddresses.first + : '' { additionalInfo = { 'comment': transfer.comment, 'assetId': assetId, }; } + String get assetId => additionalInfo["assetId"] as String; + set assetId(String newId) => additionalInfo["assetId"] = newId; final String id; final int height; @@ -61,7 +65,8 @@ class ZanoTransactionInfo extends TransactionInfo { String? key; @override - String amountFormatted() => '${formatAmount(ZanoFormatter.bigIntAmountToString(zanoAmount, decimalPoint))} $tokenSymbol'; + String amountFormatted() => + '${formatAmount(ZanoFormatter.bigIntAmountToString(zanoAmount, decimalPoint))} $tokenSymbol'; @override String fiatAmount() => _fiatAmount ?? ''; diff --git a/lib/entities/default_settings_migration.dart b/lib/entities/default_settings_migration.dart index 0b909d6db2..8f5b4c64af 100644 --- a/lib/entities/default_settings_migration.dart +++ b/lib/entities/default_settings_migration.dart @@ -44,7 +44,7 @@ const solanaDefaultNodeUri = 'solana-mainnet.core.chainstack.com'; const tronDefaultNodeUri = 'api.trongrid.io'; const newCakeWalletBitcoinUri = 'btc-electrum.cakewallet.com:50002'; const wowneroDefaultNodeUri = 'node3.monerodevs.org:34568'; -const zanoDefaultNodeUri = 'zano.cakewallet.com:33340'; +const zanoDefaultNodeUri = 'zano.cakewallet.com:11211'; const moneroWorldNodeUri = '.moneroworld.com'; Future defaultSettingsMigration( diff --git a/lib/entities/zano_alias.dart b/lib/entities/zano_alias.dart index 0171ea8243..1ddf951784 100644 --- a/lib/entities/zano_alias.dart +++ b/lib/entities/zano_alias.dart @@ -6,7 +6,7 @@ import 'package:http/http.dart' as http; class ZanoAlias { static Future fetchZanoAliasAddress(String alias) async { try { - final uri = Uri.parse("https://zano.cakewallet.com/json_rpc"); + final uri = Uri.parse("http://zano.cakewallet.com:11211/json_rpc"); final response = await http.post( uri, body: json.encode({