Replies: 1 comment 1 reply
-
|
Feel free to create a PR! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Actions from viem can be used in the PublicClient object by using
extend, but as the tree shaking docs note, you can use the plain function method for better shakeability by usinginstead of
For that, all the actions are exported from
viem/actions- for example I can doimport { getBlock } from 'viem/actions'However, the only way to use some of the actions from
op-stackactions, such asestimateProveWithdrawalGas, is using the.extend()options. So I can dobut I can't use the other form
It would be ideal, for consistency with the OG API, and for better tree-shakeability, to offer the actions that are missing
Beta Was this translation helpful? Give feedback.
All reactions