Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Jul 9, 2024
1 parent dcd782e commit e54ba60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/services/did.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op

addr, err := core.EthAddressFromID(userID)

chainIdStateAddress := resolver.BlockchainID()
chainIDStateAddress := resolver.BlockchainID()

if err == nil {
addressString := fmt.Sprintf("%x", addr)
blockchainAccountID := fmt.Sprintf("eip155:%s:0x%s", strings.Split(chainIdStateAddress, ":")[0], addressString)
blockchainAccountID := fmt.Sprintf("eip155:%s:0x%s", strings.Split(chainIDStateAddress, ":")[0], addressString)
didResolution.DidDocument.VerificationMethod = append(
didResolution.DidDocument.VerificationMethod,
verifiable.CommonVerificationMethod{
Expand All @@ -118,7 +118,7 @@ func (d *DidDocumentServices) GetDidDocument(ctx context.Context, did string, op
ID: fmt.Sprintf("%s#stateInfo", did),
Type: document.StateType,
Controller: did,
StateContractAddress: chainIdStateAddress,
StateContractAddress: chainIDStateAddress,
IdentityState: verifiable.IdentityState{
Published: &isPublished,
Info: info,
Expand Down

0 comments on commit e54ba60

Please sign in to comment.