/
memo.txt
66 lines (38 loc) · 1.26 KB
/
memo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
when transact using metamask, there is "unknown id", then try to restart chrome or firefox.
first, command truffle console
then, you are in truffle(development)>
this "(development)" is important
then, migrate --reset --all
truffle migrate --network ropsten
truffle console --network ropsten
deploy ropsten
geth --testnet account new
geth --testnet --fast --rpc --rpcapi eth,net,web3,personal
geth attach http://127.0.0.1:8545
personal.unlockAccount(eth.accounts[0])
truffle migrate --network ropsten
or
truffle migrate --network rinkeby
truffle migrate --reset --all --network ropsten
or
truffle migrate --reset --all --network rinke
or
truffle console --network ropsten
migrate --reset --all
// getTokenContractInstance: function () {
// const tokenAddress = "---tokenのアドレス---";
// const contractABI = [---ABIの中身---]
// const tokenContract = web3.eth.contract(contractABI);
// return tokenContract.at(tokenAddress);
// },
// getGasPrice: function() {
// return new Promise((resolve, reject) => {
// web3.eth.getGasPrice((error, result) => {
// if (error) {
// reject(error)
// } else {
// resolve(result.toString('16'))
// }
// })
// })
// },