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
{{ message }}
This repository has been archived by the owner on May 10, 2021. It is now read-only.
Describe the bug
I'm building a web dapp, and trying to interact only with uport. Although I'm having a problem. When I send the transaction from the mobile app, it takes 3~4 seconds and fails with "Exceded block gas limit".
To Reproduce
To simplify, I've created a react app from scratch and added the minimal code (which is below)
Steps to reproduce the behavior:
create-react-app
install uport-connect and web3
add the below code and run
while on the dapp, click "send"
importReactfrom'react';importlogofrom'./logo.svg';import'./App.css';import{Connect}from'uport-connect';importWeb3from'web3';constgetUport=()=>{constuport=newConnect('ImmunoBlock',{bannerImage: {'/': '/ipfs/QmYD2roj7j455Usn1BjxEsBzHGPj9P3M7tXTkavZMqehYD'},description: 'ImmunoBlock is a project for gitcoin beyound blockchain hackathon.',network: 'ropsten',profileImage: {'/': '/ipfs/QmU7ChytERzyUpwrrGEKAs2xvQGQSsNsjM7v4th5LUtdNt'},});returnuport;};classAppextendsReact.Component{constructor(props){super(props);constuport=getUport();constuportProvider=uport.getProvider()constweb3=newWeb3(uportProvider)this.state={
uport,
web3,}}componentDidMount=()=>{const{ uport, web3 }=this.state;uport.loadState();web3.eth.getAccounts().then((accounts)=>{console.log(accounts);this.setState({account: accounts[0]});});}handleSend=(event)=>{const{ web3, account }=this.state;web3.eth.sendTransaction({from: account,to: '0xA6b94Ce98D6CD4f447a9C6788F169DD17f65f747',value: '10000000000'}).on('receipt',(receipt)=>{console.log('success',receipt);}).on('error',console.error);}render(){return(<divclassName="App"><headerclassName="App-header"><imgsrc={logo}className="App-logo"alt="logo"/><p>
Edit <code>src/App.js</code> and save to reload.
</p><aclassName="App-link"href="https://reactjs.org"target="_blank"rel="noopener noreferrer">
Learn React
</a><buttononClick={this.handleSend}>Send</button></header></div>);}}exportdefaultApp;
Desktop (please complete the following information):
OS: linux mint 19
Browse: vivaldi (chromium based)
Version: 2.4.1488.38 (Stable channel) (64 bits)
Smartphone (please complete the following information):
Device: asus zenfone 3
OS: android 7
Browser
Version
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm building a web dapp, and trying to interact only with uport. Although I'm having a problem. When I send the transaction from the mobile app, it takes 3~4 seconds and fails with "Exceded block gas limit".
To Reproduce
To simplify, I've created a react app from scratch and added the minimal code (which is below)
Steps to reproduce the behavior:
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: