Created
June 29, 2020 11:01
-
-
Save LeoHChen/7a454a8b547eb8afc81cc729bf28406d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[03:06] leochen @ MBP15: ~/work/go/src/github.com/harmony-one/HRC/examples/multi-sender [master]: Untracked | |
$ truffle migrate --network testnet --reset | |
Compiling your contracts... | |
=========================== | |
> Compiling ./contracts/Migrations.sol | |
> Compiling ./contracts/MultiSender.sol | |
> Compiling zeppelin-solidity/contracts/math/SafeMath.sol | |
> Compiling zeppelin-solidity/contracts/ownership/Ownable.sol | |
> compilation warnings encountered: | |
/Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/contracts/MultiSender.sol:39:9: Warning: Invoking events without "emit" prefix is deprecated. | |
Transfer(msg.sender, _to, _value); | |
^-------------------------------^ | |
,/Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/contracts/MultiSender.sol:60:9: Warning: Invoking events without "emit" prefix is deprecated. | |
Transfer(_from, _to, _value); | |
^--------------------------^ | |
,/Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/contracts/MultiSender.sol:66:9: Warning: Invoking events without "emit" prefix is deprecated. | |
Approval(msg.sender, _spender, _value); | |
^------------------------------------^ | |
> Artifacts written to /Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/build/contracts | |
> Compiled successfully using: | |
- solc: 0.4.26+commit.4563c3fc.Emscripten.clang | |
/usr/local/lib/node_modules/truffle/build/webpack:/~/merkle-patricia-tree/~/async/lib/async.js:358 | |
callback(err); | |
^ | |
Error: Callback was already called. | |
at /usr/local/lib/node_modules/truffle/build/webpack:/~/merkle-patricia-tree/~/async/lib/async.js:43:1 | |
at WriteStream.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/merkle-patricia-tree/~/async/lib/async.js:358:1) | |
at WriteStream.emit (events.js:315:20) | |
at WriteStream.destroy (/usr/local/lib/node_modules/truffle/build/webpack:/~/level-ws/level-ws.js:140:1) | |
at finish (_stream_writable.js:658:14) | |
at processTicksAndRejections (internal/process/task_queues.js:84:21) | |
at runNextTicks (internal/process/task_queues.js:66:3) | |
at processImmediate (internal/timers.js:429:9) | |
Exit status: 1 [03:06] leochen @ MBP15: ~/work/go/src/github.com/harmony-one/HRC/examples/multi-sender [master]: Untracked | |
$ rm -rf build/ | |
[03:06] leochen @ MBP15: ~/work/go/src/github.com/harmony-one/HRC/examples/multi-sender [master]: Untracked | |
# https://github.com/trufflesuite/truffle/issues/3008 | |
$ truffle migrate --network testnet --skipDryRun | |
> Warning: possible unsupported (undocumented in help) command line option: --skipDryRun | |
Compiling your contracts... | |
=========================== | |
> Compiling ./contracts/Migrations.sol | |
> Compiling ./contracts/MultiSender.sol | |
> Compiling zeppelin-solidity/contracts/math/SafeMath.sol | |
> Compiling zeppelin-solidity/contracts/ownership/Ownable.sol | |
> compilation warnings encountered: | |
/Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/contracts/MultiSender.sol:39:9: Warning: Invoking events without "emit" prefix is deprecated. | |
Transfer(msg.sender, _to, _value); | |
^-------------------------------^ | |
,/Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/contracts/MultiSender.sol:60:9: Warning: Invoking events without "emit" prefix is deprecated. | |
Transfer(_from, _to, _value); | |
^--------------------------^ | |
,/Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/contracts/MultiSender.sol:66:9: Warning: Invoking events without "emit" prefix is deprecated. | |
Approval(msg.sender, _spender, _value); | |
^------------------------------------^ | |
> Artifacts written to /Users/leochen/work/go/src/github.com/harmony-one/HRC/examples/multi-sender/build/contracts | |
> Compiled successfully using: | |
- solc: 0.4.26+commit.4563c3fc.Emscripten.clang | |
Starting migrations... | |
====================== | |
> Network name: 'testnet' | |
> Network id: 2 | |
> Block gas limit: 0x32b02c | |
1_initial_migration.js | |
====================== | |
Deploying 'Migrations' | |
---------------------- | |
> transaction hash: 0x8f9f1d1ddb5c2d3367b02d335f9f917e7fa04fc1052954b2d3cacc6a5417a516 | |
> Blocks: 0 Seconds: 4 | |
> contract address: 0x85236B4848a47ab306A6d374c7D6eb12CB22c8ae | |
> block number: 334655 | |
> block timestamp: 1593425537 | |
> account: 0x403ee41F432A0be2045fbb66c4Da90683A3e6729 | |
> balance: 999999.999803177 | |
> gas used: 196823 | |
> gas price: 1 gwei | |
> value sent: 0 ETH | |
> total cost: 0.000196823 ETH | |
> Saving migration to chain. | |
> Saving artifacts | |
------------------------------------- | |
> Total cost: 0.000196823 ETH | |
Summary | |
======= | |
> Total deployments: 1 | |
> Final cost: 0.000196823 ETH | |
[03:12] leochen @ MBP15: ~/work/go/src/github.com/harmony-one/HRC/examples/multi-sender [master]: Untracked | |
$ truffle networks | |
Network: local (id: 2) | |
No contracts deployed. | |
Network: mainnet0 (id: 1) | |
No contracts deployed. | |
Network: testnet (id: 2) | |
Migrations: 0x85236B4848a47ab306A6d374c7D6eb12CB22c8ae | |
[03:14] leochen @ MBP15: ~/work/go/src/github.com/harmony-one/HRC/examples/multi-sender [master]: Untracked | |
##### | |
SHARD=https://api.s0.b.hmny.io | |
TXID=0x8f9f1d1ddb5c2d3367b02d335f9f917e7fa04fc1052954b2d3cacc6a5417a516 | |
curl -X POST $SHARD -H 'Accept: */*' \ | |
-H 'Content-Type: application/json' \ | |
-H 'cache-control: no-cache' \ | |
-d '{ | |
"jsonrpc":"2.0", | |
"method":"hmy_getTransactionReceipt", | |
"params":["'$TXID'"], | |
"id":1 | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment