Skip to content

Commit

Permalink
Fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolezhniuk committed Dec 5, 2023
1 parent 4351306 commit 274faf0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions did.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ var networks = map[NetworkID]NetworkID{
Sepolia: Sepolia,
Test: Test,
UnknownNetwork: UnknownNetwork,
NoNetwork: NoNetwork,
}

// GetNetwork returns network by name
Expand All @@ -139,8 +140,8 @@ var DIDMethodByte = map[DIDMethod]byte{
DIDMethodOther: 0b11111111,
}

// RegisterDIDMethodWithByte registers new DID method with byte flag
func RegisterDIDMethodWithByte(m DIDMethod, b byte) error {
// RegisterDIDMethod registers new DID method with byte flag
func RegisterDIDMethod(m DIDMethod, b byte) error {
didMethods[m] = m

if _, ok := DIDMethodByte[m]; ok {
Expand Down Expand Up @@ -230,7 +231,7 @@ func RegisterDIDMethodNetwork(params DIDMethodNetworkParams, opts ...Registratio
networks[n] = n

if params.methodByte != nil {
err := RegisterDIDMethodWithByte(m, *params.methodByte)
err := RegisterDIDMethod(m, *params.methodByte)
if err != nil {
return err
}
Expand Down

0 comments on commit 274faf0

Please sign in to comment.