Open floating opened 4 years ago
Thanks for reporting @floating, We will dig on it. It will be solved by https://github.com/decentraland/decentraland-dapps
Any updates here? We really want to be able to use Frame with Decentraland :)
Frame follows the standard EIP-1193 Ethereum provider spec and is injected via window.ethereum
just like MetaMask.
We're trying to provide a shim for this behavior in eth-provider
but it's doesn't seem to be just a signature problem. Do you know where send
it being used like this? Is it expecting send
to be synchronous?
I'm using Frame & Frame extension to access the marketplace and I am receiving the error
Method is not a valid string
.After some digging it seems to be because Decentraland is sending a full JSON-RPC payload and callback to the provider's
window.ethereum.send(method, params)
method, which is the wrong signature.I logged the arguments of the
send
method below. As you can see this only happens when callingeth_accounts
, the other send calls fornet_version
andeth_subscribe
follow the signature correctly.