Skip to content

Commit

Permalink
bump viem
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Jan 16, 2024
1 parent 1b20d57 commit 68af570
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-mayflies-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@turnkey/viem": patch
---

Updated dependencies
2 changes: 1 addition & 1 deletion examples/with-viem/src/advanced.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function main() {
} as const;

const typedData = {
account: turnkeyAccount,
account: turnkeyAccount.address,
domain,
types,
primaryType: "Mail",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-viem/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function main() {
});

const client = createWalletClient({
account: turnkeyAccount,
account: turnkeyAccount.address,
chain: sepolia,
transport: http(
`https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY!}`
Expand Down
2 changes: 1 addition & 1 deletion examples/with-viem/src/legacy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async function main() {
});

const client = createWalletClient({
account: turnkeyAccount,
account: turnkeyAccount.address,
chain: sepolia,
transport: http(
`https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY!}`
Expand Down
4 changes: 2 additions & 2 deletions packages/viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"compile:contracts": "hardhat compile"
},
"peerDependencies": {
"viem": "^1.16.6"
"viem": "^2.1.1"
},
"dependencies": {
"@turnkey/api-key-stamper": "workspace:*",
Expand All @@ -63,7 +63,7 @@
"devDependencies": {
"@types/jest": "^29.5.3",
"jest": "^29.3.1",
"viem": "^1.16.6"
"viem": "^2.1.1"
},
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/viem/src/__tests__/index-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ describe("TurnkeyAccount", () => {
const contract = getContract({
address: contractAddress,
abi,
walletClient,
client: walletClient,
});

// Mint
Expand Down
38 changes: 20 additions & 18 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68af570

Please sign in to comment.