explicitly define a default for signatures as expected on 0.21

This commit is contained in:
Victor Shyba 2018-10-09 23:04:55 -03:00 committed by Lex Berezhny
parent e4497c1327
commit 72ce0cd0b0

View file

@ -8,6 +8,7 @@ from typing import Optional
from twisted.internet import defer from twisted.internet import defer
from lbryschema.schema import SECP256k1
from torba.basemanager import BaseWalletManager from torba.basemanager import BaseWalletManager
from lbryschema.claim import ClaimDict from lbryschema.claim import ClaimDict
@ -354,7 +355,7 @@ class LbryWalletManager(BaseWalletManager):
claim_address = yield account.receiving.get_or_create_usable_address() claim_address = yield account.receiving.get_or_create_usable_address()
if certificate: if certificate:
claim = claim.sign( claim = claim.sign(
certificate.signature, claim_address, certificate.claim_id certificate.signature, claim_address, certificate.claim_id, curve=SECP256k1
) )
existing_claims = yield account.get_claims(claim_name=name) existing_claims = yield account.get_claims(claim_name=name)
if len(existing_claims) == 0: if len(existing_claims) == 0: