Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ledger/common/certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -728,11 +728,11 @@ func (c *StakeVoteDelegationCertificate) Utxorpc() *utxorpc.Certificate {

// Extract DRep credential if it exists (AddrKeyHash or ScriptHash)
if drepProto != nil {
switch v := drepProto.GetDrep().(type) {
switch drepProto.GetDrep().(type) {
case *utxorpc.DRep_AddrKeyHash:
drepBytes = v.AddrKeyHash
drepBytes = drepProto.GetAddrKeyHash()
case *utxorpc.DRep_ScriptHash:
drepBytes = v.ScriptHash
drepBytes = drepProto.GetScriptHash()
}
}

Expand Down Expand Up @@ -866,11 +866,11 @@ func (c *StakeVoteRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certific
var drepBytes []byte

if drepProto != nil {
switch v := drepProto.GetDrep().(type) {
switch drepProto.GetDrep().(type) {
case *utxorpc.DRep_AddrKeyHash:
drepBytes = v.AddrKeyHash
drepBytes = drepProto.GetAddrKeyHash()
case *utxorpc.DRep_ScriptHash:
drepBytes = v.ScriptHash
drepBytes = drepProto.GetScriptHash()
}
}

Expand Down
Loading