Skip to content

Instantly share code, notes, and snippets.

@area
Created March 17, 2016 16:07
Show Gist options
  • Save area/e67899bc16f61468231f to your computer and use it in GitHub Desktop.
Save area/e67899bc16f61468231f to your computer and use it in GitHub Desktop.
Using environment test.
> {
> "jsonrpc": "2.0",
> "method": "eth_accounts",
> "params": [],
> "id": 1
> }
< {
< "id": 1,
< "jsonrpc": "2.0",
< "result": [
< "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
< "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "0xb5321715e4671976b9f7f3c167662bb47cf91eb6",
< "0x5e9fb46f26971482b0068863ab874fde7af0af23",
< "0x858a68e220655ac63c52e2f3f60c782b9a080ebf",
< "0xbee1a5644f97828de8a63fb5250447df7cc48460",
< "0xd7f569c2ba6182482942a83c3f2fdce2eea63efd",
< "0x26c322b4574cc56efe98e39573f93c66a8a0920f",
< "0x5b18d15ea35b1a0c62be1d69b0356f53cf3930c2",
< "0xb4d371a4674d626a8147dae068078034945fe7ee"
< ]
< }
Compiling contracts...
> {
> "jsonrpc": "2.0",
> "method": "evm_snapshot",
> "id": 1458230744405
> }
< {
< "id": 1458230744405,
< "jsonrpc": "2.0",
< "result": "0x44"
< }
Contract: RootContract
> {
> "jsonrpc": "2.0",
> "method": "eth_accounts",
> "params": [],
> "id": 2
> }
< {
< "id": 2,
< "jsonrpc": "2.0",
< "result": [
< "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
< "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "0xb5321715e4671976b9f7f3c167662bb47cf91eb6",
< "0x5e9fb46f26971482b0068863ab874fde7af0af23",
< "0x858a68e220655ac63c52e2f3f60c782b9a080ebf",
< "0xbee1a5644f97828de8a63fb5250447df7cc48460",
< "0xd7f569c2ba6182482942a83c3f2fdce2eea63efd",
< "0x26c322b4574cc56efe98e39573f93c66a8a0920f",
< "0x5b18d15ea35b1a0c62be1d69b0356f53cf3930c2",
< "0xb4d371a4674d626a8147dae068078034945fe7ee"
< ]
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "gasPrice": "0x174876e800",
> "data": "606060405260028054600160a060020a0319163317905561017d806100246000396000f36060604052361560315760e060020a60003504631530b00e811460375780638da5cb5b14608b578063afe07dda14609c575b60cb6002565b60cb606060b0806100cd833901809050604051809103906000f0600180546000908152602081905260409020805473ffffffffffffffffffffffffffffffffffffffff191692909217909155805481019055565b60b8600254600160a060020a031681565b600435600090815260208190526040902054600160a060020a03165b600160a060020a03166060908152602090f35b006060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
> }
> ],
> "id": 3
> }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "gasPrice": "0x174876e800",
> "data": "6060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
> }
> ],
> "id": 4
> }
< {
< "id": 3,
< "jsonrpc": "2.0",
< "result": "0x4c406ae290e2bbe0d65356ea7dc24fc521611d7ce86dbe774346d8099ab45bd4"
< }
< {
< "id": 4,
< "jsonrpc": "2.0",
< "result": "0xf9f59b8730b8851a0ef7cff3efe1096af2ec29f0ddc59b0ebf036a8b7dfb18d9"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x4c406ae290e2bbe0d65356ea7dc24fc521611d7ce86dbe774346d8099ab45bd4"
> ],
> "id": 5
> }
< {
< "id": 5,
< "jsonrpc": "2.0",
< "result": {
< "transactionHash": "0x4c406ae290e2bbe0d65356ea7dc24fc521611d7ce86dbe774346d8099ab45bd4",
< "transactionIndex": "0x00",
< "blockHash": "0x1a55508e744835ac4d8eef8870d32e63d11aac8f4672d2a99b70d806df2ccda6",
< "blockNumber": "0xa0",
< "cumulativeGasUsed": "0x02b25d",
< "gasUsed": "0x02b25d",
< "contractAddress": "0xb1fed28cfc0e35c7f5804e0bedc84631a7b953fe",
< "logs": []
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionReceipt",
> "params": [
> "0xf9f59b8730b8851a0ef7cff3efe1096af2ec29f0ddc59b0ebf036a8b7dfb18d9"
> ],
> "id": 6
> }
< {
< "id": 6,
< "jsonrpc": "2.0",
< "result": {
< "transactionHash": "0xf9f59b8730b8851a0ef7cff3efe1096af2ec29f0ddc59b0ebf036a8b7dfb18d9",
< "transactionIndex": "0x00",
< "blockHash": "0x9cccdbdf4285286e5d06736d15b69028c87cd74f892ecf7645386cbc2fb3c11c",
< "blockNumber": "0xa1",
< "cumulativeGasUsed": "0x01acb7",
< "gasUsed": "0x01acb7",
< "contractAddress": "0x4c3763887bc09e15ec1271d5cb08dfb624570c86",
< "logs": []
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "evm_snapshot",
> "id": 1458230744985
> }
< {
< "id": 1458230744985,
< "jsonrpc": "2.0",
< "result": "0x45"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_blockNumber",
> "params": [],
> "id": 7
> }
< {
< "id": 7,
< "jsonrpc": "2.0",
< "result": "0xa1"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "data": "606060405260028054600160a060020a0319163317905561017d806100246000396000f36060604052361560315760e060020a60003504631530b00e811460375780638da5cb5b14608b578063afe07dda14609c575b60cb6002565b60cb606060b0806100cd833901809050604051809103906000f0600180546000908152602081905260409020805473ffffffffffffffffffffffffffffffffffffffff191692909217909155805481019055565b60b8600254600160a060020a031681565b600435600090815260208190526040902054600160a060020a03165b600160a060020a03166060908152602090f35b006060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
> }
> ],
> "id": 8
> }
< {
< "id": 8,
< "jsonrpc": "2.0",
< "result": "0xc75269aae52106ffbf6c3253cd569fedcc73eed0857a4d5072e60b96b801de1a"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_newBlockFilter",
> "params": [],
> "id": 9
> }
< {
< "id": 9,
< "jsonrpc": "2.0",
< "result": "0x0x22"
< }
> [
> {
> "jsonrpc": "2.0",
> "method": "eth_getFilterChanges",
> "params": [
> "0x0x22"
> ],
> "id": 10
> }
> ]
< [
< {
< "id": 10,
< "jsonrpc": "2.0",
< "result": []
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "method": "eth_getFilterChanges",
> "params": [
> "0x0x22"
> ],
> "id": 11
> }
> ]
< [
< {
< "id": 11,
< "jsonrpc": "2.0",
< "result": []
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "method": "eth_getFilterChanges",
> "params": [
> "0x0x22"
> ],
> "id": 12
> }
> ]
< [
< {
< "id": 12,
< "jsonrpc": "2.0",
< "result": [
< "0x55442c5d58dcf50c30097d83c82bfa469c655cc6b250fa62343c8903cd703a04"
< ]
< }
< ]
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionReceipt",
> "params": [
> "0xc75269aae52106ffbf6c3253cd569fedcc73eed0857a4d5072e60b96b801de1a"
> ],
> "id": 13
> }
< {
< "id": 13,
< "jsonrpc": "2.0",
< "result": {
< "transactionHash": "0xc75269aae52106ffbf6c3253cd569fedcc73eed0857a4d5072e60b96b801de1a",
< "transactionIndex": "0x00",
< "blockHash": "0x55442c5d58dcf50c30097d83c82bfa469c655cc6b250fa62343c8903cd703a04",
< "blockNumber": "0xa2",
< "cumulativeGasUsed": "0x02b25d",
< "gasUsed": "0x02b25d",
< "contractAddress": "0xd4a7a2cc7edabec40e77e337ecccc6cb02e17697",
< "logs": []
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getCode",
> "params": [
> "0xd4a7a2cc7edabec40e77e337ecccc6cb02e17697",
> "latest"
> ],
> "id": 14
> }
< {
< "id": 14,
< "jsonrpc": "2.0",
< "result": "0x6060604052361560315760e060020a60003504631530b00e811460375780638da5cb5b14608b578063afe07dda14609c575b60cb6002565b60cb606060b0806100cd833901809050604051809103906000f0600180546000908152602081905260409020805473ffffffffffffffffffffffffffffffffffffffff191692909217909155805481019055565b60b8600254600160a060020a031681565b600435600090815260208190526040902054600160a060020a03165b600160a060020a03166060908152602090f35b006060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_uninstallFilter",
> "params": [
> "0x0x22"
> ],
> "id": 15
> }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
> "gas": "0x2fefd8",
> "to": "0xd4a7a2cc7edabec40e77e337ecccc6cb02e17697",
> "data": "0x1530b00e"
> }
> ],
> "id": 16
> }
< {
< "id": 15,
< "jsonrpc": "2.0",
< "result": true
< }
< {
< "id": 16,
< "jsonrpc": "2.0",
< "result": "0x53c85fde7e14d3b0edd98ce40d2a40f1c2c65e5841de302839cf401f66bc5af7"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionByHash",
> "params": [
> "0x53c85fde7e14d3b0edd98ce40d2a40f1c2c65e5841de302839cf401f66bc5af7"
> ],
> "id": 17
> }
< {
< "id": 17,
< "jsonrpc": "2.0",
< "result": {
< "hash": "0x53c85fde7e14d3b0edd98ce40d2a40f1c2c65e5841de302839cf401f66bc5af7",
< "nonce": "0x41",
< "blockHash": "0x838261549d85c8a9af9a2dbdd4dc9e9a541aecd38d968feaba6e0b9eff3ddaad",
< "blockNumber": "0xa3",
< "transactionIndex": "0x0",
< "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "to": "0xd4a7a2cc7edabec40e77e337ecccc6cb02e17697",
< "value": "0x0",
< "gas": "0x2fefd8",
< "gasPrice": "0x01",
< "input": "0x1530b00e"
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_call",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "to": "0xd4a7a2cc7edabec40e77e337ecccc6cb02e17697",
> "data": "0xafe07dda0000000000000000000000000000000000000000000000000000000000000000"
> },
> "latest"
> ],
> "id": 18
> }
< {
< "id": 18,
< "jsonrpc": "2.0",
< "result": "0x00000000000000000000000029bb72e46c26141dd6b75930ff25e02b0f05b8d9"
< }
✓ this test will eventually fail (1154ms)
> {
> "jsonrpc": "2.0",
> "method": "eth_blockNumber",
> "params": [],
> "id": 19
> }
< {
< "id": 19,
< "jsonrpc": "2.0",
< "result": "0xa3"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
> "gas": "0x2fefd8",
> "to": "0xb1fed28cfc0e35c7f5804e0bedc84631a7b953fe",
> "data": "0x1530b00e"
> }
> ],
> "id": 20
> }
< {
< "id": 20,
< "jsonrpc": "2.0",
< "result": "0x5cef1d13b3333fd84d944567ed7695b1d5754c90a168ea9143d103cf50c161f3"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionByHash",
> "params": [
> "0x5cef1d13b3333fd84d944567ed7695b1d5754c90a168ea9143d103cf50c161f3"
> ],
> "id": 21
> }
< {
< "id": 21,
< "jsonrpc": "2.0",
< "result": {
< "hash": "0x5cef1d13b3333fd84d944567ed7695b1d5754c90a168ea9143d103cf50c161f3",
< "nonce": "0x42",
< "blockHash": "0x3d639d8847815de16a86ccc9b6d81ad70929e0ad8762ca71513de4e401e07f74",
< "blockNumber": "0xa4",
< "transactionIndex": "0x0",
< "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "to": "0xb1fed28cfc0e35c7f5804e0bedc84631a7b953fe",
< "value": "0x0",
< "gas": "0x2fefd8",
< "gasPrice": "0x01",
< "input": "0x1530b00e"
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_call",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "to": "0xb1fed28cfc0e35c7f5804e0bedc84631a7b953fe",
> "data": "0xafe07dda0000000000000000000000000000000000000000000000000000000000000000"
> },
> "latest"
> ],
> "id": 22
> }
< {
< "id": 22,
< "jsonrpc": "2.0",
< "result": "0x000000000000000000000000b16169b3325bcdbdd8f5b369c3fc906410aaba0e"
< }
✓ this test never fails (80ms)
2 passing (2s)
Using environment test.
> {
> "jsonrpc": "2.0",
> "method": "eth_accounts",
> "params": [],
> "id": 1
> }
< {
< "id": 1,
< "jsonrpc": "2.0",
< "result": [
< "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
< "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "0xb5321715e4671976b9f7f3c167662bb47cf91eb6",
< "0x5e9fb46f26971482b0068863ab874fde7af0af23",
< "0x858a68e220655ac63c52e2f3f60c782b9a080ebf",
< "0xbee1a5644f97828de8a63fb5250447df7cc48460",
< "0xd7f569c2ba6182482942a83c3f2fdce2eea63efd",
< "0x26c322b4574cc56efe98e39573f93c66a8a0920f",
< "0x5b18d15ea35b1a0c62be1d69b0356f53cf3930c2",
< "0xb4d371a4674d626a8147dae068078034945fe7ee"
< ]
< }
Compiling contracts...
> {
> "jsonrpc": "2.0",
> "method": "evm_snapshot",
> "id": 1458230748397
> }
< {
< "id": 1458230748397,
< "jsonrpc": "2.0",
< "result": "0x46"
< }
Contract: RootContract
> {
> "jsonrpc": "2.0",
> "method": "eth_accounts",
> "params": [],
> "id": 2
> }
< {
< "id": 2,
< "jsonrpc": "2.0",
< "result": [
< "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
< "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "0xb5321715e4671976b9f7f3c167662bb47cf91eb6",
< "0x5e9fb46f26971482b0068863ab874fde7af0af23",
< "0x858a68e220655ac63c52e2f3f60c782b9a080ebf",
< "0xbee1a5644f97828de8a63fb5250447df7cc48460",
< "0xd7f569c2ba6182482942a83c3f2fdce2eea63efd",
< "0x26c322b4574cc56efe98e39573f93c66a8a0920f",
< "0x5b18d15ea35b1a0c62be1d69b0356f53cf3930c2",
< "0xb4d371a4674d626a8147dae068078034945fe7ee"
< ]
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "gasPrice": "0x174876e800",
> "data": "606060405260028054600160a060020a0319163317905561017d806100246000396000f36060604052361560315760e060020a60003504631530b00e811460375780638da5cb5b14608b578063afe07dda14609c575b60cb6002565b60cb606060b0806100cd833901809050604051809103906000f0600180546000908152602081905260409020805473ffffffffffffffffffffffffffffffffffffffff191692909217909155805481019055565b60b8600254600160a060020a031681565b600435600090815260208190526040902054600160a060020a03165b600160a060020a03166060908152602090f35b006060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
> }
> ],
> "id": 3
> }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "gasPrice": "0x174876e800",
> "data": "6060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
> }
> ],
> "id": 4
> }
< {
< "id": 3,
< "jsonrpc": "2.0",
< "result": "0x89ec83d6301018a2e92e5399490a5d7356991b110be9cc37848a649a9ad3b96d"
< }
< {
< "id": 4,
< "jsonrpc": "2.0",
< "result": "0xf49fd46b87e7c8ba09c681a7e1b7cd57a54988d4e9bb0c1505555243836c5e7a"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x89ec83d6301018a2e92e5399490a5d7356991b110be9cc37848a649a9ad3b96d"
> ],
> "id": 5
> }
< {
< "id": 5,
< "jsonrpc": "2.0",
< "result": {
< "transactionHash": "0x89ec83d6301018a2e92e5399490a5d7356991b110be9cc37848a649a9ad3b96d",
< "transactionIndex": "0x00",
< "blockHash": "0x6a059650af64267ed708dfe2203866dc768c125cd1caa84914d19700e5aeca4c",
< "blockNumber": "0xa5",
< "cumulativeGasUsed": "0x02b25d",
< "gasUsed": "0x02b25d",
< "contractAddress": "0x64bd687aa7bfe262161e0465ad878a87f2e36c1b",
< "logs": []
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionReceipt",
> "params": [
> "0xf49fd46b87e7c8ba09c681a7e1b7cd57a54988d4e9bb0c1505555243836c5e7a"
> ],
> "id": 6
> }
< {
< "id": 6,
< "jsonrpc": "2.0",
< "result": {
< "transactionHash": "0xf49fd46b87e7c8ba09c681a7e1b7cd57a54988d4e9bb0c1505555243836c5e7a",
< "transactionIndex": "0x00",
< "blockHash": "0x8f8cc530d8a3d70b28f5b2221c054fdc8fa6909ddf1dd8a6eb51c315270b5ed8",
< "blockNumber": "0xa6",
< "cumulativeGasUsed": "0x01acb7",
< "gasUsed": "0x01acb7",
< "contractAddress": "0x8b9ecf012c98a5303ed821caa8b7d553c9cf82a2",
< "logs": []
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "evm_snapshot",
> "id": 1458230748974
> }
< {
< "id": 1458230748974,
< "jsonrpc": "2.0",
< "result": "0x47"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_blockNumber",
> "params": [],
> "id": 7
> }
< {
< "id": 7,
< "jsonrpc": "2.0",
< "result": "0xa6"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "data": "606060405260028054600160a060020a0319163317905561017d806100246000396000f36060604052361560315760e060020a60003504631530b00e811460375780638da5cb5b14608b578063afe07dda14609c575b60cb6002565b60cb606060b0806100cd833901809050604051809103906000f0600180546000908152602081905260409020805473ffffffffffffffffffffffffffffffffffffffff191692909217909155805481019055565b60b8600254600160a060020a031681565b600435600090815260208190526040902054600160a060020a03165b600160a060020a03166060908152602090f35b006060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
> }
> ],
> "id": 8
> }
< {
< "id": 8,
< "jsonrpc": "2.0",
< "result": "0x2db9320feaf221c8fea817d0d0ddf7dcae541dee5aaf86a5403fc1f472c77988"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_newBlockFilter",
> "params": [],
> "id": 9
> }
< {
< "id": 9,
< "jsonrpc": "2.0",
< "result": "0x0x23"
< }
> [
> {
> "jsonrpc": "2.0",
> "method": "eth_getFilterChanges",
> "params": [
> "0x0x23"
> ],
> "id": 10
> }
> ]
< [
< {
< "id": 10,
< "jsonrpc": "2.0",
< "result": []
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "method": "eth_getFilterChanges",
> "params": [
> "0x0x23"
> ],
> "id": 11
> }
> ]
< [
< {
< "id": 11,
< "jsonrpc": "2.0",
< "result": []
< }
< ]
> [
> {
> "jsonrpc": "2.0",
> "method": "eth_getFilterChanges",
> "params": [
> "0x0x23"
> ],
> "id": 12
> }
> ]
< [
< {
< "id": 12,
< "jsonrpc": "2.0",
< "result": [
< "0x8658600ed7a0a328c1351085892cc7be3107d52678dcd781240c8045698f755b"
< ]
< }
< ]
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionReceipt",
> "params": [
> "0x2db9320feaf221c8fea817d0d0ddf7dcae541dee5aaf86a5403fc1f472c77988"
> ],
> "id": 13
> }
< {
< "id": 13,
< "jsonrpc": "2.0",
< "result": {
< "transactionHash": "0x2db9320feaf221c8fea817d0d0ddf7dcae541dee5aaf86a5403fc1f472c77988",
< "transactionIndex": "0x00",
< "blockHash": "0x8658600ed7a0a328c1351085892cc7be3107d52678dcd781240c8045698f755b",
< "blockNumber": "0xa7",
< "cumulativeGasUsed": "0x02b25d",
< "gasUsed": "0x02b25d",
< "contractAddress": "0xe0040d156d0412c4e1955e75c510be1e8510406f",
< "logs": []
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getCode",
> "params": [
> "0xe0040d156d0412c4e1955e75c510be1e8510406f",
> "latest"
> ],
> "id": 14
> }
< {
< "id": 14,
< "jsonrpc": "2.0",
< "result": "0x6060604052361560315760e060020a60003504631530b00e811460375780638da5cb5b14608b578063afe07dda14609c575b60cb6002565b60cb606060b0806100cd833901809050604051809103906000f0600180546000908152602081905260409020805473ffffffffffffffffffffffffffffffffffffffff191692909217909155805481019055565b60b8600254600160a060020a031681565b600435600090815260208190526040902054600160a060020a03165b600160a060020a03166060908152602090f35b006060604052600160a060020a0332166000908152602081905260409020805460ff19166001179055607d8060336000396000f36060604052361560275760e060020a60003504636386c1c78114602d578063a87430ba146063575b60006002565b73ffffffffffffffffffffffffffffffffffffffff6004351660009081526020819052604090205460ff165b6060908152602090f35b605960043560006020819052908152604090205460ff168156"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_uninstallFilter",
> "params": [
> "0x0x23"
> ],
> "id": 15
> }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
> "gas": "0x2fefd8",
> "to": "0xe0040d156d0412c4e1955e75c510be1e8510406f",
> "data": "0x1530b00e"
> }
> ],
> "id": 16
> }
< {
< "id": 15,
< "jsonrpc": "2.0",
< "result": true
< }
< {
< "id": 16,
< "jsonrpc": "2.0",
< "result": "0x1fa579a25e99a93a06953c256ebbdc4da4262f263f503940a0187382ef97432a"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionByHash",
> "params": [
> "0x1fa579a25e99a93a06953c256ebbdc4da4262f263f503940a0187382ef97432a"
> ],
> "id": 17
> }
< {
< "id": 17,
< "jsonrpc": "2.0",
< "result": {
< "hash": "0x1fa579a25e99a93a06953c256ebbdc4da4262f263f503940a0187382ef97432a",
< "nonce": "0x43",
< "blockHash": "0xde47a831d8d66c712accbf6d9e28229dcf10e1dbf04b5bf0b781a3eb5bdd087e",
< "blockNumber": "0xa8",
< "transactionIndex": "0x0",
< "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "to": "0xe0040d156d0412c4e1955e75c510be1e8510406f",
< "value": "0x0",
< "gas": "0x2fefd8",
< "gasPrice": "0x01",
< "input": "0x1530b00e"
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_call",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "to": "0xe0040d156d0412c4e1955e75c510be1e8510406f",
> "data": "0xafe07dda0000000000000000000000000000000000000000000000000000000000000000"
> },
> "latest"
> ],
> "id": 18
> }
< {
< "id": 18,
< "jsonrpc": "2.0",
< "result": "0x0000000000000000000000000000000000000000000000000000000000000000"
< }
1) this test will eventually fail
> {
> "jsonrpc": "2.0",
> "method": "eth_getLogs",
> "id": 1458230750120,
> "params": [
> {
> "fromBlock": "0xa7"
> }
> ]
> }
< {
< "id": 1458230750120,
< "jsonrpc": "2.0",
< "result": []
< }
> No events were emitted
> {
> "jsonrpc": "2.0",
> "method": "eth_blockNumber",
> "params": [],
> "id": 19
> }
< {
< "id": 19,
< "jsonrpc": "2.0",
< "result": "0xa8"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_sendTransaction",
> "params": [
> {
> "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
> "gas": "0x2fefd8",
> "to": "0x64bd687aa7bfe262161e0465ad878a87f2e36c1b",
> "data": "0x1530b00e"
> }
> ],
> "id": 20
> }
< {
< "id": 20,
< "jsonrpc": "2.0",
< "result": "0x926b03bae283fa0a25d85c0e557ff4e6843353ed03f4afa3a71f966564123908"
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_getTransactionByHash",
> "params": [
> "0x926b03bae283fa0a25d85c0e557ff4e6843353ed03f4afa3a71f966564123908"
> ],
> "id": 21
> }
< {
< "id": 21,
< "jsonrpc": "2.0",
< "result": {
< "hash": "0x926b03bae283fa0a25d85c0e557ff4e6843353ed03f4afa3a71f966564123908",
< "nonce": "0x44",
< "blockHash": "0x2744633f39ee6e971e7a061181e1959be55c5c672ec0bb3a3d1291c45844acf1",
< "blockNumber": "0xa9",
< "transactionIndex": "0x0",
< "from": "0x5e06e56f46b1df8fe16d76d8d4a225ded65d9530",
< "to": "0x64bd687aa7bfe262161e0465ad878a87f2e36c1b",
< "value": "0x0",
< "gas": "0x2fefd8",
< "gasPrice": "0x01",
< "input": "0x1530b00e"
< }
< }
> {
> "jsonrpc": "2.0",
> "method": "eth_call",
> "params": [
> {
> "from": "0xb4346d44181922fe1e680068f0ec52bea6ae7d32",
> "gas": "0x2fefd8",
> "to": "0x64bd687aa7bfe262161e0465ad878a87f2e36c1b",
> "data": "0xafe07dda0000000000000000000000000000000000000000000000000000000000000000"
> },
> "latest"
> ],
> "id": 22
> }
< {
< "id": 22,
< "jsonrpc": "2.0",
< "result": "0x000000000000000000000000ee7400f00d07b622f9cdd6609eb57ad6580048ad"
< }
✓ this test never fails (83ms)
1 passing (2s)
1 failing
1) Contract: RootContract this test will eventually fail:
AssertionError: Undefined subcontract address: expected '0x0000000000000000000000000000000000000000' to not equal '0x0000000000000000000000000000000000000000'
at test/rootcontract.js:21:16
<snip>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment