You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Bug]: MetaMask stays loading indefinetly and get error StreamProvider - Unknown response id for response: [object Object] when doing *some* contract interactions #17467
Problem: when I call the function for mint an ERC1155 token, MetaMask stays loading indefinetly and I get the console error Error in event handler: Error: StreamProvider - Unknown response id for response: [object Object] .
mint-erc1155-streamprovider.mp4
This also happens when I call another contract function.
streamprovider-error.mp4
[EDITED] It seems the error could start whenever we deploy a contract. It's not 100% deterministic, so further investigation needs to be done.
Deploy this contract on Goerli - see error on console // if not, deploy another contract
Create another contract
contract SendToFallback {
uint val = 0;
function transferToFallback(address payable _to) public payable {
_to.transfer(msg.value);
}
function callFallback(address payable _to) public payable {
(bool sent, ) = _to.call{value: msg.value}("");
require(sent, "Failed to send Ether");
}
function count(uint _val) public {
val = _val;
}
}
Deploy this contract on Goerli - see error on console
After this, we are into a broken state, shown in the videos above.
Describe the bug
Problem: when I call the function for mint an ERC1155 token, MetaMask stays loading indefinetly and I get the console error
Error in event handler: Error: StreamProvider - Unknown response id for response: [object Object].mint-erc1155-streamprovider.mp4
This also happens when I call another contract function.
streamprovider-error.mp4
[EDITED] It seems the error could start whenever we deploy a contract. It's not 100% deterministic, so further investigation needs to be done.
Steps to reproduce [EDITED]
After this, we are into a broken state, shown in the videos above.
Error messages or log output
No response
Version
develop [EDITED]
Build type
None
Browser
Chrome
Operating system
Linux
Hardware wallet
No response
Additional context
No response