Skip to content

Instantly share code, notes, and snippets.

@thekaleidoscope
Created July 6, 2018 07:14
Show Gist options
  • Save thekaleidoscope/55a01ae048454ce17b3897bb6e4ace83 to your computer and use it in GitHub Desktop.
Save thekaleidoscope/55a01ae048454ce17b3897bb6e4ace83 to your computer and use it in GitHub Desktop.
truffle migrate --network sawtooth --reset --verbose-rpc
Compiling ./contracts/test.sol...
Compilation warnings encountered:
/home/neosp/Test/Sawtooth/sawtooth-seth/contracts/test/contracts/test.sol:6:3: Warning: No visibility specified. Defaulting to "public".
function setName(string _name)
^ (Relevant source part starts here and spans across multiple lines).
,/home/neosp/Test/Sawtooth/sawtooth-seth/contracts/test/contracts/test.sol:10:3: Warning: No visibility specified. Defaulting to "public".
function getName() constant returns(string)
^ (Relevant source part starts here and spans across multiple lines).
Writing artifacts to ./build/contracts
> {
> "jsonrpc": "2.0",
> "id": 1,
> "method": "net_version",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": "19",
< "id": 1
< }
Using network 'sawtooth'.
Running migration: 1_initial_migration.js
> {
> "jsonrpc": "2.0",
> "id": 2,
> "method": "eth_accounts",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": [
< "0x28454cad80a6e30087e1d9388a5c073a3cc4babb"
< ],
< "id": 2
< }
Replacing Migrations...
> {
> "jsonrpc": "2.0",
> "id": 3,
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x28454cad80a6e30087e1d9388a5c073a3cc4babb",
> "gas": "0x6691b7",
> "gasPrice": "0x174876e800",
> "data": "0x608060405234801561001057600080fd5b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506102f8806100606000396000f300608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820584d788f0d41893e1562e00d9887d892235569fc5c3a88bbe9f04e9737d62eb70029"
> }
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": "0x50965cb7647b9bedd2cdba5f0a3857e9932ffe3c8f7a1d639a9d8313d31d210415de2880c4d947ec04b567c770ec7bce1ce79a51bf38003a499081d8aec10b07",
< "id": 3
< }
... 0x50965cb7647b9bedd2cdba5f0a3857e9932ffe3c8f7a1d639a9d8313d31d210415de2880c4d947ec04b567c770ec7bce1ce79a51bf38003a499081d8aec10b07
> {
> "jsonrpc": "2.0",
> "id": 4,
> "method": "eth_newBlockFilter",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": "0x8",
< "id": 4
< }
> [
> {
> "jsonrpc": "2.0",
> "id": 5,
> "method": "eth_getFilterChanges",
> "params": [
> "0x8"
> ]
> }
> ]
< [
< {
< "jsonrpc": "2.0",
< "result": [],
< "id": 5
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "id": 6,
> "method": "eth_getFilterChanges",
> "params": [
> "0x8"
> ]
> }
> ]
< [
< {
< "jsonrpc": "2.0",
< "error": {
< "code": -32602,
< "message": "Unknown filter id: 8"
< },
< "id": 6
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "id": 7,
> "method": "eth_getFilterChanges",
> "params": [
> "0x8"
> ]
> }
> ]
< [
< {
< "jsonrpc": "2.0",
< "result": [
< "0x60bf961180312a5cae4513ed1c97cd9e7b9336200f8c0d888db31ed10f2398725ceaec2b39df61e8eaa00b3707550994bcbfa4170747d7aa301235b3b6e0411e"
< ],
< "id": 7
< }
< ]
> {
> "jsonrpc": "2.0",
> "id": 8,
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x50965cb7647b9bedd2cdba5f0a3857e9932ffe3c8f7a1d639a9d8313d31d210415de2880c4d947ec04b567c770ec7bce1ce79a51bf38003a499081d8aec10b07"
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": {
< "blockHash": "0x60bf961180312a5cae4513ed1c97cd9e7b9336200f8c0d888db31ed10f2398725ceaec2b39df61e8eaa00b3707550994bcbfa4170747d7aa301235b3b6e0411e",
< "blockNumber": "0x24",
< "contractAddress": "0xfd404223ee59402bc2a60cb887ffa427ed6039a1",
< "cumulativeGasUsed": "0x41",
< "gasUsed": "0x41",
< "logs": [],
< "returnValue": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820584d788f0d41893e1562e00d9887d892235569fc5c3a88bbe9f04e9737d62eb70029",
< "transactionHash": "0x50965cb7647b9bedd2cdba5f0a3857e9932ffe3c8f7a1d639a9d8313d31d210415de2880c4d947ec04b567c770ec7bce1ce79a51bf38003a499081d8aec10b07",
< "transactionIndex": "0x1"
< },
< "id": 8
< }
> {
> "jsonrpc": "2.0",
> "id": 9,
> "method": "eth_getCode",
> "params": [
> "0xfd404223ee59402bc2a60cb887ffa427ed6039a1",
> "latest"
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": "0x608060405260043610610062576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff1680630900f01014610067578063445df0ac146100aa5780638da5cb5b146100d5578063fdacd5761461012c575b600080fd5b34801561007357600080fd5b506100a8600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610159565b005b3480156100b657600080fd5b506100bf610241565b6040518082815260200191505060405180910390f35b3480156100e157600080fd5b506100ea610247565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561013857600080fd5b506101576004803603810190808035906020019092919050505061026c565b005b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141561023d578190508073ffffffffffffffffffffffffffffffffffffffff1663fdacd5766001546040518263ffffffff167c010000000000000000000000000000000000000000000000000000000002815260040180828152602001915050600060405180830381600087803b15801561022457600080fd5b505af1158015610238573d6000803e3d6000fd5b505050505b5050565b60015481565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614156102c957806001819055505b505600a165627a7a72305820584d788f0d41893e1562e00d9887d892235569fc5c3a88bbe9f04e9737d62eb70029",
< "id": 9
< }
> {
> "jsonrpc": "2.0",
> "id": 10,
> "method": "eth_uninstallFilter",
> "params": [
> "0x8"
> ]
> }
Migrations: 0xfd404223ee59402bc2a60cb887ffa427ed6039a1
Saving successful migration to network...
> {
> "jsonrpc": "2.0",
> "id": 11,
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x28454cad80a6e30087e1d9388a5c073a3cc4babb",
> "gas": "0x6691b7",
> "gasPrice": "0x174876e800",
> "to": "0xfd404223ee59402bc2a60cb887ffa427ed6039a1",
> "data": "0xfdacd5760000000000000000000000000000000000000000000000000000000000000001"
> }
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": false,
< "id": 10
< }
< {
< "jsonrpc": "2.0",
< "result": "0x6b3557dfd1d005b67f8f2ed5179b51f4b71d0b1ea500d49e645d37fbe2a3002e52e4dab1f9a8773d604b9b6a545a04fee689b144edee91e787a077b18b57b5b4",
< "id": 11
< }
... 0x6b3557dfd1d005b67f8f2ed5179b51f4b71d0b1ea500d49e645d37fbe2a3002e52e4dab1f9a8773d604b9b6a545a04fee689b144edee91e787a077b18b57b5b4
> {
> "jsonrpc": "2.0",
> "id": 12,
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x6b3557dfd1d005b67f8f2ed5179b51f4b71d0b1ea500d49e645d37fbe2a3002e52e4dab1f9a8773d604b9b6a545a04fee689b144edee91e787a077b18b57b5b4"
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": null,
< "id": 12
< }
> {
> "jsonrpc": "2.0",
> "id": 13,
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x6b3557dfd1d005b67f8f2ed5179b51f4b71d0b1ea500d49e645d37fbe2a3002e52e4dab1f9a8773d604b9b6a545a04fee689b144edee91e787a077b18b57b5b4"
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": {
< "blockHash": "0x0e4c772c34bab1d546c53a5b16ede6cb6369adc80188989617b903878480c99669e6522cbe715a5517752806feaf0cb8af6a18c67baecfa671db44199da485d2",
< "blockNumber": "0x25",
< "contractAddress": "0x",
< "cumulativeGasUsed": "0x8d",
< "gasUsed": "0x8d",
< "logs": [],
< "returnValue": "0x",
< "transactionHash": "0x6b3557dfd1d005b67f8f2ed5179b51f4b71d0b1ea500d49e645d37fbe2a3002e52e4dab1f9a8773d604b9b6a545a04fee689b144edee91e787a077b18b57b5b4",
< "transactionIndex": "0x1"
< },
< "id": 13
< }
Saving artifacts...
Running migration: 2_deploy_contracts.js
> {
> "jsonrpc": "2.0",
> "id": 14,
> "method": "eth_accounts",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": [
< "0x28454cad80a6e30087e1d9388a5c073a3cc4babb"
< ],
< "id": 14
< }
> {
> "jsonrpc": "2.0",
> "id": 15,
> "method": "net_version",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": "19",
< "id": 15
< }
Deploying test...
> {
> "jsonrpc": "2.0",
> "id": 16,
> "method": "net_version",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": "19",
< "id": 16
< }
> {
> "jsonrpc": "2.0",
> "id": 17,
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x28454cad80a6e30087e1d9388a5c073a3cc4babb",
> "gas": "0x6691b7",
> "gasPrice": "0x174876e800",
> "data": "0x608060405234801561001057600080fd5b506102d7806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806317d7de7c14610051578063c47f0027146100e1575b600080fd5b34801561005d57600080fd5b5061006661014a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100a657808201518184015260208101905061008b565b50505050905090810190601f1680156100d35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100ed57600080fd5b50610148600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506101ec565b005b606060008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101e25780601f106101b7576101008083540402835291602001916101e2565b820191906000526020600020905b8154815290600101906020018083116101c557829003601f168201915b5050505050905090565b8060009080519060200190610202929190610206565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061024757805160ff1916838001178555610275565b82800160010185558215610275579182015b82811115610274578251825591602001919060010190610259565b5b5090506102829190610286565b5090565b6102a891905b808211156102a457600081600090555060010161028c565b5090565b905600a165627a7a72305820626fc8573a0c266dd1800046cfec51eae6c9773f41a5dd3ca30a37ec5825719f0029"
> }
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": "0x14219e6fd9d0e69b865dbc8b93e7458d3c705f10339d7332f88d863fc680e5f33d82424922774de27ee54ea7fcb63dd3c9ee9250be0417be6fa88ec834135388",
< "id": 17
< }
... 0x14219e6fd9d0e69b865dbc8b93e7458d3c705f10339d7332f88d863fc680e5f33d82424922774de27ee54ea7fcb63dd3c9ee9250be0417be6fa88ec834135388
> {
> "jsonrpc": "2.0",
> "id": 18,
> "method": "eth_newBlockFilter",
> "params": []
> }
< {
< "jsonrpc": "2.0",
< "result": "0x9",
< "id": 18
< }
> [
> {
> "jsonrpc": "2.0",
> "id": 19,
> "method": "eth_getFilterChanges",
> "params": [
> "0x9"
> ]
> }
> ]
< [
< {
< "jsonrpc": "2.0",
< "result": [],
< "id": 19
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "id": 20,
> "method": "eth_getFilterChanges",
> "params": [
> "0x9"
> ]
> }
> ]
< [
< {
< "jsonrpc": "2.0",
< "result": [
< "0x8bca5aec4566ec2241f4c3077d3b70e596891f00aad17c78994be660b7b0478062dee452cfe70f7a4efbf8eb9a489a1bfbcea7876ee4a1a96288fa73b19ebcdb"
< ],
< "id": 20
< }
< ]
> {
> "jsonrpc": "2.0",
> "id": 21,
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x14219e6fd9d0e69b865dbc8b93e7458d3c705f10339d7332f88d863fc680e5f33d82424922774de27ee54ea7fcb63dd3c9ee9250be0417be6fa88ec834135388"
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": {
< "blockHash": "0x8bca5aec4566ec2241f4c3077d3b70e596891f00aad17c78994be660b7b0478062dee452cfe70f7a4efbf8eb9a489a1bfbcea7876ee4a1a96288fa73b19ebcdb",
< "blockNumber": "0x26",
< "contractAddress": "0x88089f0fe9a0301aa7e1e6645d55968781e63e10",
< "cumulativeGasUsed": "0x18",
< "gasUsed": "0x18",
< "logs": [],
< "returnValue": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806317d7de7c14610051578063c47f0027146100e1575b600080fd5b34801561005d57600080fd5b5061006661014a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100a657808201518184015260208101905061008b565b50505050905090810190601f1680156100d35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100ed57600080fd5b50610148600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506101ec565b005b606060008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101e25780601f106101b7576101008083540402835291602001916101e2565b820191906000526020600020905b8154815290600101906020018083116101c557829003601f168201915b5050505050905090565b8060009080519060200190610202929190610206565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061024757805160ff1916838001178555610275565b82800160010185558215610275579182015b82811115610274578251825591602001919060010190610259565b5b5090506102829190610286565b5090565b6102a891905b808211156102a457600081600090555060010161028c565b5090565b905600a165627a7a72305820626fc8573a0c266dd1800046cfec51eae6c9773f41a5dd3ca30a37ec5825719f0029",
< "transactionHash": "0x14219e6fd9d0e69b865dbc8b93e7458d3c705f10339d7332f88d863fc680e5f33d82424922774de27ee54ea7fcb63dd3c9ee9250be0417be6fa88ec834135388",
< "transactionIndex": "0x1"
< },
< "id": 21
< }
> {
> "jsonrpc": "2.0",
> "id": 22,
> "method": "eth_getCode",
> "params": [
> "0x88089f0fe9a0301aa7e1e6645d55968781e63e10",
> "latest"
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": "0x60806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806317d7de7c14610051578063c47f0027146100e1575b600080fd5b34801561005d57600080fd5b5061006661014a565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156100a657808201518184015260208101905061008b565b50505050905090810190601f1680156100d35780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156100ed57600080fd5b50610148600480360381019080803590602001908201803590602001908080601f01602080910402602001604051908101604052809392919081815260200183838082843782019150505050505091929192905050506101ec565b005b606060008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156101e25780601f106101b7576101008083540402835291602001916101e2565b820191906000526020600020905b8154815290600101906020018083116101c557829003601f168201915b5050505050905090565b8060009080519060200190610202929190610206565b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061024757805160ff1916838001178555610275565b82800160010185558215610275579182015b82811115610274578251825591602001919060010190610259565b5b5090506102829190610286565b5090565b6102a891905b808211156102a457600081600090555060010161028c565b5090565b905600a165627a7a72305820626fc8573a0c266dd1800046cfec51eae6c9773f41a5dd3ca30a37ec5825719f0029",
< "id": 22
< }
> {
> "jsonrpc": "2.0",
> "id": 23,
> "method": "eth_uninstallFilter",
> "params": [
> "0x9"
> ]
> }
test: 0x88089f0fe9a0301aa7e1e6645d55968781e63e10
Saving successful migration to network...
> {
> "jsonrpc": "2.0",
> "id": 24,
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x28454cad80a6e30087e1d9388a5c073a3cc4babb",
> "gas": "0x6691b7",
> "gasPrice": "0x174876e800",
> "to": "0xfd404223ee59402bc2a60cb887ffa427ed6039a1",
> "data": "0xfdacd5760000000000000000000000000000000000000000000000000000000000000002"
> }
> ]
> }
< {
< "jsonrpc": "2.0",
< "result": true,
< "id": 23
< }
< {
< "jsonrpc": "2.0",
< "error": {
< "code": -32603,
< "message": "Internal error"
< },
< "id": 24
< }
... undefined
Error encountered, bailing. Network state unknown. Review successful transactions manually.
Error: Internal error
at Object.InvalidResponse (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
at /usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:225:1
at /usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
at XMLHttpRequest.request.onreadystatechange (/usr/local/lib/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
at XMLHttpRequestEventTarget.dispatchEvent (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
at XMLHttpRequest._setReadyState (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
at XMLHttpRequest._onHttpResponseEnd (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
at IncomingMessage.emit (events.js:187:15)
at endReadableNT (_stream_readable.js:1081:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment