Skip to content

Commit

Permalink
revert to non-ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarHatem28 committed Jan 28, 2025
1 parent 7b39266 commit b2eea27
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 2 additions & 2 deletions assets/zano_node_list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
useSSL: false
19 changes: 12 additions & 7 deletions cw_zano/lib/model/zano_transaction_info.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 = <String, dynamic>{
'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;
Expand All @@ -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 ?? '';
Expand Down
2 changes: 1 addition & 1 deletion lib/entities/default_settings_migration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> defaultSettingsMigration(
Expand Down
2 changes: 1 addition & 1 deletion lib/entities/zano_alias.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:http/http.dart' as http;
class ZanoAlias {
static Future<String?> 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({
Expand Down

0 comments on commit b2eea27

Please sign in to comment.