from Lestonz #MakingBetter
We are a team that has set out to combine your ideas and dreams with Web3 technology. We will do our best to migrate all Web2 and Web1 based applications to Web3.
Dowloading Global:
npm i -g lz-dapp-mobile
Start:
npx lz-dapp-mobile
Enter your app name:
lz-dapp
Enter your app URI scheme:
reactnative
Enter your app file:
cd lz-dapp
Run your device:
yarn ios
yarn android
We recommend you to use physical device after installing ios or android files. You should change .env file's datas for hardhat.config.js
You should open another terminal for Truffle Dashboard:
npx truffle dashboard
You can write in first terminal.
deploy:truffle
After that copy and paste your Smart Contract Address for config.js file, and copy and paste your own provider link.
YOUR_SMART_CONTRACT_ADDRESS
YOUR_PROVIDER_LINK
Open frontend/App.js file
const tx = {
from: address,
to: `${YOUR_SMART_CONTRACT_ADDRESS}`,
data: `${contractData}`,
value:`${value}`,
gasPrice: web3Provider.utils.toWei('10', 'gwei')
}
or
const txSecond ={
data: '0x',
from: '0x8B6FE676217eEE2C9Cf484203Cb8855ca85eB07D',
gas: '0x9c40',
gasPrice: '0x02540be400',
nonce: '0x0114',
to: '0xa979143B16a3C61b317385C7dC3C269503B88c92',
value: '0x00',
}
Your Beautiful Lz-DApp is ready for coding