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