Skip to content

Commit

Permalink
fix: abi encoding dynamic tuple child derivation
Browse files Browse the repository at this point in the history
  • Loading branch information
jxom committed Feb 25, 2023
1 parent 1e74a7a commit e1634b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/stale-ads-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Fixed ABI encoding dynamic tuple child derivation
2 changes: 1 addition & 1 deletion src/utils/abi/encodeAbi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ function encodeTuple<
value: (value as any)[index!] as any,
})
preparedParams.push(preparedParam)
dynamic = preparedParam.dynamic
if (preparedParam.dynamic) dynamic = true
}
return {
dynamic,
Expand Down

2 comments on commit e1634b5

@vercel
Copy link

@vercel vercel bot commented on e1634b5 Feb 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viem-site – ./site

viem-site.vercel.app
viem.sh
viem-site-wagmi-dev.vercel.app
viem-site-git-main-wagmi-dev.vercel.app
www.viem.sh

@vercel
Copy link

@vercel vercel bot commented on e1634b5 Feb 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viem-playground – ./playgrounds/browser

viem-playground-wagmi-dev.vercel.app
viem-playground-git-main-wagmi-dev.vercel.app
viem-playground.vercel.app

Please sign in to comment.