Skip to content

Commit

Permalink
upgrade to viem 2.17.11
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshka committed Jul 24, 2024
1 parent 8a252a5 commit 6bd185b
Show file tree
Hide file tree
Showing 6 changed files with 8,559 additions and 6,877 deletions.
6 changes: 6 additions & 0 deletions .changeset/dull-doors-beg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@soundxyz/legacy-sdk': major
'@soundxyz/sdk': major
---

upgrade to viem 2.17.11
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
strict-peer-dependencies=false
shared-workspace-lockfile=true
prefer-workspace-packages=true

package-manager-strict=false
4 changes: 2 additions & 2 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
"esbuild": "^0.19.4",
"prettier": "^3.1.1",
"typescript": "5.2.2",
"viem": "^1.20.0",
"viem": "^2.17.11",
"zod": "^3.22.4"
},
"peerDependencies": {
"viem": "^1.20.0",
"viem": "^2.17.11",
"zod": "^3.22.4"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/contract/edition-v2/read/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export async function mintingSchedules<Client extends Pick<PublicClient, 'readCo
const { address, abi } = await getSuperMinterForEdition(client, { editionAddress })

const schedules: SuperMinterSchedule[] = await client
.readContract<typeof abi, 'mintInfoList'>({
.readContract({
abi,
address,
functionName: 'mintInfoList',
Expand Down
4 changes: 2 additions & 2 deletions packages/sdk/src/contract/edition-v2/read/mint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export async function editionMintParameters<
try {
// Add a buffer to the gas estimate to account for node provider estimate variance.
gasEstimate = txnOverrides.gas = scaleAmount({
amount: await client.estimateContractGas<Chain, typeof superMinter.abi, 'mintTo'>({
amount: await client.estimateContractGas({
args,
...sharedWriteContractParameters,
...txnOverrides,
Expand Down Expand Up @@ -371,7 +371,7 @@ export async function editionMintParameters<
try {
// Add a buffer to the gas estimate to account for node provider estimate variance.
gasEstimate = txnOverrides.gas = scaleAmount({
amount: await client.estimateContractGas<Chain, typeof superMinter.abi, 'mintTo'>({
amount: await client.estimateContractGas({
args,
...sharedWriteContractParameters,
...txnOverrides,
Expand Down
Loading

0 comments on commit 6bd185b

Please sign in to comment.