File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -728,11 +728,11 @@ func (c *StakeVoteDelegationCertificate) Utxorpc() *utxorpc.Certificate {
728
728
729
729
// Extract DRep credential if it exists (AddrKeyHash or ScriptHash)
730
730
if drepProto != nil {
731
- switch v := drepProto .GetDrep ().(type ) {
731
+ switch drepProto .GetDrep ().(type ) {
732
732
case * utxorpc.DRep_AddrKeyHash :
733
- drepBytes = v . AddrKeyHash
733
+ drepBytes = drepProto . GetAddrKeyHash ()
734
734
case * utxorpc.DRep_ScriptHash :
735
- drepBytes = v . ScriptHash
735
+ drepBytes = drepProto . GetScriptHash ()
736
736
}
737
737
}
738
738
@@ -866,11 +866,11 @@ func (c *StakeVoteRegistrationDelegationCertificate) Utxorpc() *utxorpc.Certific
866
866
var drepBytes []byte
867
867
868
868
if drepProto != nil {
869
- switch v := drepProto .GetDrep ().(type ) {
869
+ switch drepProto .GetDrep ().(type ) {
870
870
case * utxorpc.DRep_AddrKeyHash :
871
- drepBytes = v . AddrKeyHash
871
+ drepBytes = drepProto . GetAddrKeyHash ()
872
872
case * utxorpc.DRep_ScriptHash :
873
- drepBytes = v . ScriptHash
873
+ drepBytes = drepProto . GetScriptHash ()
874
874
}
875
875
}
876
876
You can’t perform that action at this time.
0 commit comments