Closed
Description
panicked at 'internal error: entered unreachable code: Unable to parse request response: Err(Err(Error("unknown field `stack`, expected one of `code`, `message`, `data`", line: 1, column: 90)))'
Code to reproduce this behavior:
let window = web_sys::window().expect("no window available");
let ethereum = window.get("ethereum").expect("MetaMask is not installed");
let eth = ethereum.unchecked_into::<web3::transports::eip_1193::Provider>();
let web3 = web3::Web3::new(web3::transports::eip_1193::Eip1193::new(eth)));
web3.eth().request_accounts().await;
Run and click "Cancel" when MetaMask will offer to connect your wallet to website.
The same bug appears when cancelling transaction confirmation.
Metadata
Metadata
Assignees
Labels
No labels