Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

Commit 7d90a65

Browse files
author
Piotr Stachyra
committed
satisfy rubocop and version bump to 3.14
1 parent 1d90c44 commit 7d90a65

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ Metrics/CyclomaticComplexity:
2222

2323
Metrics/ParameterLists:
2424
Max: 10
25+
MaxOptionalParameters: 10

lib/cardano_wallet/byron.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ def random(wid, payments)
210210
# Byron transactions
211211
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/postByronTransactionFee
212212
class Transactions < Base
213-
214213
# Construct transaction
215214
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/constructByronTransaction
216215
# @param wid [String] source wallet id
@@ -237,8 +236,8 @@ def construct(wid, payments = nil, metadata = nil, mint = nil, validity_interval
237236
# @param passphrase [String] CBOR transaction data
238237
def sign(wid, passphrase, transaction)
239238
payload = {
240-
"passphrase" => passphrase,
241-
"transaction" => transaction
239+
'passphrase' => passphrase,
240+
'transaction' => transaction
242241
}
243242

244243
self.class.post("/byron-wallets/#{wid}/transactions-sign",

lib/cardano_wallet/shelley.rb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ def random_deleg(wid, deleg_action)
258258
# API for Transactions
259259
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#tag/Transactions
260260
class Transactions < Base
261-
262261
# Construct transaction
263262
# @see https://input-output-hk.github.io/cardano-wallet/api/edge/#operation/constructTransaction
264263
# @param wid [String] source wallet id
@@ -268,7 +267,13 @@ class Transactions < Base
268267
# @param mint [Array of Hashes] mint object
269268
# @param delegations [Array of Hashes] delegations object
270269
# @param validity_interval [Hash] validity_interval object
271-
def construct(wid, payments = nil, withdrawal = nil, metadata = nil, delegations = nil, mint = nil, validity_interval = nil)
270+
def construct(wid,
271+
payments = nil,
272+
withdrawal = nil,
273+
metadata = nil,
274+
delegations = nil,
275+
mint = nil,
276+
validity_interval = nil)
272277
payload = {}
273278
payload[:payments] = payments if payments
274279
payload[:withdrawal] = withdrawal if withdrawal
@@ -289,8 +294,8 @@ def construct(wid, payments = nil, withdrawal = nil, metadata = nil, delegations
289294
# @param passphrase [String] CBOR transaction data
290295
def sign(wid, passphrase, transaction)
291296
payload = {
292-
"passphrase" => passphrase,
293-
"transaction" => transaction
297+
'passphrase' => passphrase,
298+
'transaction' => transaction
294299
}
295300

296301
self.class.post("/wallets/#{wid}/transactions-sign",

lib/cardano_wallet/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module CardanoWallet
4-
VERSION = '0.3.12'
4+
VERSION = '0.3.14'
55
end

0 commit comments

Comments
 (0)