Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: update metamask send_transaction #21467

Closed
luu-alex opened this issue Oct 19, 2023 · 7 comments
Closed

[Bug]: update metamask send_transaction #21467

luu-alex opened this issue Oct 19, 2023 · 7 comments
Labels
external-contributor regression-prod-11.0 Regression bug that was found in production in release 11.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform type-bug

Comments

@luu-alex
Copy link

luu-alex commented Oct 19, 2023

Describe the bug

https://docs.metamask.io/wallet/reference/eth_sendtransaction/
the metamask docs, send_transaction accepts data as calldata and not input within the transaction,
according to the updated ethereum docs it should be accept input within a transaction for calldata.

another thing:
metamask expects input on eth_call, but it expects data on eth_sendTransaction

Expected behavior

when web3js uses send_transaction, input is populated not data.
a transaction with the input property should have callData populated in metamask, but does not.

Screenshots

No response

Steps to reproduce

look at spec above or i can provide more details if neccesary

Error messages or log output

No response

Version

11.0

Build type

None

Browser

Firefox

Operating system

Windows, MacOS

Hardware wallet

No response

Additional context

would like to know your thoughts if u can change this to also accept input

Severity

No response

@metamaskbot metamaskbot added external-contributor regression-prod-11.0 Regression bug that was found in production in release 11.0 labels Oct 19, 2023
@vandan
Copy link

vandan commented Oct 19, 2023

Thanks for bringing this discrepancy to our attention. We will look into it.

@vandan vandan added team-wallet-api-platform Sev2-normal Normal severity; minor loss of service or inconvenience. labels Oct 19, 2023
@jdevcs
Copy link

jdevcs commented Oct 23, 2023

Thanks @vandan , This bug in metamask is effecting many web3.js v4 users, could you share with us when this will be fixed in metamask.

According to EL Specs:
https://github.com/ethereum/execution-apis/blob/057892b256c181232ca22499d1801b9637192698/src/eth/submit.yaml#L7C37-L7C55

https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml#L385

@vandan
Copy link

vandan commented Nov 3, 2023

eth_sendTransaction is actually meant to be a wallet method.
See further details in our issue against the Ethereum Execution API repo: ethereum/execution-apis#367

@vandan
Copy link

vandan commented Nov 3, 2023

@vandan vandan closed this as completed Nov 3, 2023
@Muhammad-Altabba
Copy link

Hi @vandan,
Could you please, at least update MetaMask to accept if the input was passed; according to the Execution Layer documentation mentioned at https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml#L385 and https://ethereum.github.io/execution-apis/api-documentation/?
Thanks in advance,

@jdevcs
Copy link

jdevcs commented Nov 10, 2023

eth_sendTransaction is actually meant to be a wallet method. See further details in our issue against the Ethereum Execution API repo: ethereum/execution-apis#367

Above issue is still open and not fixed/merged into Ethereum Execution Layer Specs, also following now has input field :

https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction

EL Specs has some JSON RPCs for wallet functions in case if any EL client want to expose wallet functionality ( like under Eth Personal API ),

I'll suggest to allow input field as well in metamask until EL Specs are doing it and ethereum/execution-apis#363 is not concluded. and if its removed from EL Specs or updated after that you should update MM logic for it. @vandan Thanks

@holic
Copy link

holic commented Aug 18, 2024

Any update on this? Just found this via #21467

Context: I am building a tool to forward RPC calls to Metamask and I spent a while trying to figure out why this wasn't working as expected, and turns out the eth_sendTransaction call I was receiving used input data (which follows the Ethereum spec) and was failing to pass to Metamask.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor regression-prod-11.0 Regression bug that was found in production in release 11.0 Sev2-normal Normal severity; minor loss of service or inconvenience. team-wallet-api-platform type-bug
Projects
None yet
Development

No branches or pull requests

6 participants