compute_domain for consistency with get_domain

This commit is contained in:
Justin Drake
2019-07-01 00:35:09 +01:00
parent 41897e779a
commit aeba6ee8fb
3 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ def build_deposit_data(spec, pubkey, privkey, amount, withdrawal_credentials, st
def sign_deposit_data(spec, deposit_data, privkey, state=None):
if state is None:
# Genesis
domain = spec.compute_bls_domain(spec.DOMAIN_DEPOSIT)
domain = spec.compute_domain(spec.DOMAIN_DEPOSIT)
else:
domain = spec.get_domain(
state,