Skip to content

Commit

Permalink
comment updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Sep 21, 2023
1 parent 5a501c1 commit 85a6718
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/walletextension/api/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func getUserID(conn userconn.UserConn, userIDPosition int) (string, error) {
}

// Alternatively, try to get it from URL path
// This is a temporary hack to work around hardhat bug which causes hardhat to ignore query parameters.
// It is unsafe because https encrypts query parameters,
// but not URL itself and will be removed once hardhat bug is resolved.
path := conn.GetHTTPRequest().URL.Path
path = strings.Trim(path, "/")
parts := strings.Split(path, "/")
Expand Down

0 comments on commit 85a6718

Please sign in to comment.