lib/stellar/asset.rb in stellar-base-0.29.0 vs lib/stellar/asset.rb in stellar-base-0.30.0
- old
+ new
@@ -28,9 +28,17 @@
code = normalize_code(code, 12)
an = AlphaNum12.new({asset_code: code, issuer: issuer.account_id})
new(:asset_type_credit_alphanum12, an)
end
+ def to_change_trust_asset
+ ChangeTrustAsset.new(switch, value)
+ end
+
+ def to_trust_line_asset
+ TrustLineAsset.new(switch, value)
+ end
+
def to_s
case switch
when AssetType.asset_type_native
"native"
when AssetType.asset_type_credit_alphanum4