1.0.11 • Published 5 years ago
pantograph v1.0.11
import {onConnectWallet} from 'pantograph'
async connectWallet(){
await onConnectWallet();
console.log('window.tomoWeb3 ', window.tomoWeb3);
const coinbase = await window.tomoWeb3.eth.coinbase;
console.log('coinbase address', coinbase);
}
componentDidMount(){
console.log('componentDidMount');
this.connectWallet();
}