scalechain 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/scalechain/controllers/transaction_controller.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6cefbc31b909c3b03c08a1193869dab1e583fcd
|
|
4
|
+
data.tar.gz: 6f2779bed2e6d69a5e661220c8258e4e2b68bd84
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 895e2dc98545c606641f30b32bfb8607aa860246177dd357f7c7823c8a0e7e5367ac4d517f3eae4fd6155db8811b40601fa5b04d74f6ddc9910060589717a7ea
|
|
7
|
+
data.tar.gz: e67f89b8254daba5233e87f69f6d8d1caaad796d3ab2f1983905e0e50d240814115e1de5ab13a950330caacd08750653d9b3405aee8e14f54f4e12e580df4ac8
|
|
@@ -81,9 +81,9 @@ module ScaleChain
|
|
|
81
81
|
|
|
82
82
|
# Returns a signed transaction in hex.
|
|
83
83
|
# @param [String] network Required parameter: Blockchain network
|
|
84
|
-
# @param [String]
|
|
84
|
+
# @param [String] unsigned_tx_hex Required parameter: A raw transaction in hex
|
|
85
85
|
# @return mixed response from the API call
|
|
86
|
-
def sign_raw_transaction
|
|
86
|
+
def sign_raw_transaction unsigned_tx_hex, network
|
|
87
87
|
# the base uri for api requests
|
|
88
88
|
query_builder = Configuration.BASE_URI.dup
|
|
89
89
|
|
|
@@ -103,7 +103,7 @@ module ScaleChain
|
|
|
103
103
|
|
|
104
104
|
# prepare parameters
|
|
105
105
|
parameters = {
|
|
106
|
-
"unsigned_tx_hex" =>
|
|
106
|
+
"unsigned_tx_hex" => unsigned_tx_hex
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
# invoke the API call request to fetch the response
|