integrations/viem: initial package work - #268
Closed
CedarMist wants to merge 4 commits into
Closed
Conversation
aefhm
reviewed
Jan 31, 2024
| transport: provider | ||
| }); | ||
|
|
||
| const hash = await walletClient.deployContract({ |
Contributor
There was a problem hiding this comment.
May not be using Viem right. I get a deploy error.
TransactionExecutionError: The method does not exist / is not available.
...
Details: the method eth_sendTransaction does not exist/is not available
Version: viem@2.6.1
at getTransactionError (file:///Users/xi/oasis/sapphire-paratime/node_modules/.pnpm/viem@2.6.1_typescript@5.3.3/node_modules/viem/_esm/utils/errors/getTransactionError.js:11:12)
at sendTransaction (file:///Users/xi/oasis/sapphire-paratime/node_modules/.pnpm/viem@2.6.1_typescript@5.3.3/node_modules/viem/_esm/actions/wallet/sendTransaction.js:123:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async main (file:///Users/xi/oasis/sapphire-paratime/examples/viem/build/examples/viem/src/index.js:38:18)
at async file:///Users/xi/oasis/sapphire-paratime/examples/viem/build/examples/viem/src/index.js:73:1 {
details: 'the method eth_sendTransaction does not exist/is not available',
docsPath: undefined,
metaMessages: [
'URL: http://127.0.0.1:8545',
'Request body: {"method":"eth_sendTransaction","params":[{"data":"...","from":"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"}]}',
' ',
'Request Arguments:',
' chain: Oasis Sapphire Testnet (id: 23293)\n' +
' from: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266\n' +
' data: ...'
],
shortMessage: 'The method does not exist / is not available.',
version: 'viem@2.6.1',
cause: MethodNotFoundRpcError: The method does not exist / is not available.
URL: http://127.0.0.1:8545
Contributor
|
Closing in favor of #303. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ideas:
cipher.tscipher.tsbetween multiple packages (so, this remains in the core?)integrations/etherspackagetsconfigbetween the packagesTODO:
examples/viemexamples/wagmi