Skip to content

Commit

Permalink
fix(deps): update dependency ethers to v6 (#128)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency ethers to v6

* upgrade siwe

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Charlie Andrews <[email protected]>
  • Loading branch information
renovate[bot] and cajubelt authored Oct 27, 2023
1 parent 0bbd0a4 commit 4cbce50
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 467 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@badrap/result": "^0.2.13",
"@fiatconnect/fiatconnect-types": "^13.2.2",
"cross-fetch": "^4.0.0",
"ethers": "^5.7.2",
"ethers": "^6.8.0",
"fetch-cookie": "^2.1.0",
"siwe": "^2.1.4",
"tough-cookie": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/siwe-client.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AuthRequestBody, ClockResponse } from '@fiatconnect/fiatconnect-types'
import { ethers } from 'ethers'
import { getAddress } from 'ethers'
import { generateNonce, SiweMessage } from 'siwe'
import { fetchWithTimeout } from './fetch-timeout'
import {
Expand Down Expand Up @@ -57,7 +57,7 @@ export abstract class SiweImpl implements SiweApiClient {
// Some SIWE validators compare this against the checksummed signing address,
// and thus will always fail if this address is not checksummed. This coerces
// non-checksummed addresses to be checksummed.
address: ethers.utils.getAddress(this.config.accountAddress),
address: getAddress(this.config.accountAddress),
statement: this.config.statement,
uri: this.config.loginUrl,
version: this.config.version,
Expand Down
Loading

0 comments on commit 4cbce50

Please sign in to comment.