File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ import (
23
23
)
24
24
25
25
const (
26
- StakeCredentialTypeAddrKeyHash = 0
27
- StakeCredentialTypeScriptHash = 1
26
+ CredentialTypeAddrKeyHash = 0
27
+ CredentialTypeScriptHash = 1
28
28
)
29
29
30
30
type Credential struct {
@@ -57,11 +57,11 @@ func (c *Credential) Hash() Blake2b224 {
57
57
func (c * Credential ) Utxorpc () * utxorpc.StakeCredential {
58
58
ret := & utxorpc.StakeCredential {}
59
59
switch c .CredType {
60
- case StakeCredentialTypeAddrKeyHash :
60
+ case CredentialTypeAddrKeyHash :
61
61
ret .StakeCredential = & utxorpc.StakeCredential_AddrKeyHash {
62
62
AddrKeyHash : c .Credential [:],
63
63
}
64
- case StakeCredentialTypeScriptHash :
64
+ case CredentialTypeScriptHash :
65
65
ret .StakeCredential = & utxorpc.StakeCredential_ScriptHash {
66
66
ScriptHash : c .Credential [:],
67
67
}
You can’t perform that action at this time.
0 commit comments