VoterDRepScriptHash.deserialize constructor

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

Implementation

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