fix RPC publish claim serialization

This commit is contained in:
Victor Shyba 2018-07-15 19:40:12 -03:00 committed by Jack Robison
parent 75f57fc517
commit 6f1d2e7690
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -44,7 +44,7 @@ class Transaction(BaseTransaction):
# type: (bytes, ClaimDict, int, bytes, List[BaseAccount], BaseAccount) -> defer.Deferred # type: (bytes, ClaimDict, int, bytes, List[BaseAccount], BaseAccount) -> defer.Deferred
ledger = cls.ensure_all_have_same_ledger(funding_accounts, change_account) ledger = cls.ensure_all_have_same_ledger(funding_accounts, change_account)
claim_output = Output.pay_claim_name_pubkey_hash( claim_output = Output.pay_claim_name_pubkey_hash(
amount, name, hexlify(meta.serialized), ledger.address_to_hash160(holding_address) amount, name, meta.serialized, ledger.address_to_hash160(holding_address)
) )
return cls.pay([claim_output], funding_accounts, change_account) return cls.pay([claim_output], funding_accounts, change_account)