stellar-base 0.0.19 → 0.0.20
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/stellar/base/version.rb +1 -1
- data/lib/stellar/operation.rb +8 -4
- 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: b5ccdbf9c969e49fdac7bf759a71330a9f2b4b88
|
4
|
+
data.tar.gz: 941f08106de210e0607b0c66c05981b83c0cf519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa06709f25ef7d48892e6db72ba6c5ac1e5ff9be05151613cfeb09cc1e24ee14dd4c44346a228f3ab26180789b5d467696171035ba48fc318b28675f2e781a8
|
7
|
+
data.tar.gz: 6eeb0145b27fe11c81972f9ac1cc76dc9272e2742245369679f254ad8d90133192c9178e0c958d1bb678e85de4f733ca93cbdbbcf533fb9c0fb81893d153a5ce
|
data/lib/stellar/base/version.rb
CHANGED
data/lib/stellar/operation.rb
CHANGED
@@ -183,10 +183,14 @@ module Stellar
|
|
183
183
|
# @return [Stellar::Operation] the built operation, containing a
|
184
184
|
# Stellar::SetOptionsOp body
|
185
185
|
def self.set_options(attributes={})
|
186
|
-
op
|
187
|
-
op.set_flags
|
188
|
-
op.clear_flags
|
189
|
-
op.
|
186
|
+
op = SetOptionsOp.new()
|
187
|
+
op.set_flags = Stellar::AccountFlags.make_mask attributes[:set]
|
188
|
+
op.clear_flags = Stellar::AccountFlags.make_mask attributes[:clear]
|
189
|
+
op.master_weight = attributes[:master_weight]
|
190
|
+
op.low_threshold = attributes[:low_threshold]
|
191
|
+
op.med_threshold = attributes[:med_threshold]
|
192
|
+
op.high_threshold = attributes[:high_threshold]
|
193
|
+
|
190
194
|
op.signer = attributes[:signer]
|
191
195
|
op.home_domain = attributes[:home_domain]
|
192
196
|
|