Skip to content

Commit 3cc9ebc

Browse files
committed
Format Open CryptoPay files
1 parent b46e08e commit 3cc9ebc

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

lib/services/open_crypto_pay/open_crypto_pay_api.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ class OpenCryptoPayApi {
2424

2525
({InternetAddress host, int port})? get _proxyInfo =>
2626
AppConfig.hasFeature(AppFeature.tor) && Prefs.instance.useTor
27-
? TorService.sharedInstance.getProxyInfo()
28-
: null;
27+
? TorService.sharedInstance.getProxyInfo()
28+
: null;
2929

3030
/// Throws if [uri] is not an absolute https URL. LUD-01 mandates HTTPS;
3131
/// rejecting plain http also closes off MITM and SSRF-into-loopback risks

lib/services/open_crypto_pay/settlement.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ class OpenCryptoPaySettlement {
3535
final EthTokenWallet? tokenWallet;
3636

3737
bool get shouldCommitTxId => shouldCommitTxIdFor(
38-
method: commit.method,
39-
submissionFlow: commit.submissionFlow,
40-
cryptoCurrency: wallet.cryptoCurrency,
41-
hasSparkInputs: txData.usedSparkCoins?.isNotEmpty == true,
42-
rawHexLength: txData.raw?.length ?? 0,
43-
);
38+
method: commit.method,
39+
submissionFlow: commit.submissionFlow,
40+
cryptoCurrency: wallet.cryptoCurrency,
41+
hasSparkInputs: txData.usedSparkCoins?.isNotEmpty == true,
42+
rawHexLength: txData.raw?.length ?? 0,
43+
);
4444

4545
static bool shouldCommitTxIdFor({
4646
required String method,
@@ -220,12 +220,12 @@ class OpenCryptoPaySettlement {
220220
}
221221

222222
String? _validateMinFee() => validateMinFee(
223-
cryptoCurrency: wallet.cryptoCurrency,
224-
minFee: commit.minFee,
225-
gasPrice: txData.web3dartTransaction?.maxFeePerGas?.getInWei,
226-
fee: txData.fee,
227-
vSize: txData.vSize,
228-
);
223+
cryptoCurrency: wallet.cryptoCurrency,
224+
minFee: commit.minFee,
225+
gasPrice: txData.web3dartTransaction?.maxFeePerGas?.getInWei,
226+
fee: txData.fee,
227+
vSize: txData.vSize,
228+
);
229229

230230
static String? validateMinFee({
231231
required CryptoCurrency cryptoCurrency,

0 commit comments

Comments
 (0)