VoterConstitutionalCommitteeHotScriptHash.deserialize constructor

VoterConstitutionalCommitteeHotScriptHash.deserialize(
  1. CborListValue<CborObject> cbor
)

Implementation

factory VoterConstitutionalCommitteeHotScriptHash.deserialize(
    CborListValue cbor) {
  VoterType.deserialize(cbor.elementAt<CborIntValue>(0).value,
      validate: VoterType.constitutionalCommitteeHotScriptHash);
  return VoterConstitutionalCommitteeHotScriptHash(
      CredentialScript(cbor.elementAt<CborBytesValue>(1).value));
}