web3.js icon indicating copy to clipboard operation
web3.js copied to clipboard

web3.eth.sendTransaction not receive after upgrading MetaMask from 4.11.x to 4.12.0?

Open hoangdv1995 opened this issue 8 years ago • 3 comments

web3.eth.sendTransaction({from, to, value})
.then(function(receipt){
    console.log(receipt);   // not working
});
// OR
web3.eth.sendTransaction({from, to, value})
.on('receipt', function(receipt) {
    console.log(receipt);   // not working
})

hoangdv1995 avatar Oct 01 '18 07:10 hoangdv1995

Interesting that, after seeing this issue, I checked my metamask version, and realized it's 4.9, and the 4.12 is only available for chrome. In the next day, someone asked for help on the truffle gitter with an error like TypeError: Cannot read property 'connection' of undefined. And suddenly I thought about this issue. A few answers late I said afaik there are people having some kind of trouble with metamask 4.12 which in response I got downgrading to metamask 4.11.1 worked!. So, looks like there is a problem, but it is with metamask, not with web3.js

vibern0 avatar Oct 03 '18 10:10 vibern0

+1 Same problem here with MetaMask 4.12

AleG94 avatar Oct 04 '18 13:10 AleG94

It has been confirmed the issue is with MetaMask 4.12 and not web3.js.

AleG94 avatar Oct 06 '18 09:10 AleG94