markdown 当在万神网络中,在Ganache中恢复时的事务具有不同的输出
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 当在万神网络中,在Ganache中恢复时的事务具有不同的输出相关的知识,希望对你有一定的参考价值。
## Ganache
### Transaction succeeded output:
```
result { blockHash:
'0x07071ddd9b6ad9cdf8653ca3f32f1a6d3bdb43236e5bce9c0b7a7d31a72a95d0',
blockNumber: 357,
contractAddress: null,
cumulativeGasUsed: 29884,
from: '0x8717ed44ceb53f15db9cf1bec75a037a70232ac8',
gasUsed: 29884,
logsBloom:
'0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
status: '0x1',
to: '0xab56e88f626b382840579df7c2d9ec706adb32bd',
transactionHash:
'0x268ae8a623e5af4469662f4f92737e2f957ab847fabb28eadd6910e785ebac74',
transactionIndex: 0,
events: {} }
```
Status: 1 --> Succeeded!
### Transaction reverting output:
```
err Error: VM Exception while processing transaction: revert
at /Users/carlosfaria/code/PublicMint/send-signed-tx/node_modules/truffle-hdwallet-provider/dist/index.js:15:620966
at e.i.onreadystatechange (/Users/carlosfaria/code/PublicMint/send-signed-tx/node_modules/truffle-hdwallet-provider/dist/index.js:15:775626)
at e.t.dispatchEvent (/Users/carlosfaria/code/PublicMint/send-signed-tx/node_modules/truffle-hdwallet-provider/dist/index.js:1:152921)
at e.\_setReadyState (/Users/carlosfaria/code/PublicMint/send-signed-tx/node_modules/truffle-hdwallet-provider/dist/index.js:15:780388)
at e.\_onHttpResponseEnd (/Users/carlosfaria/code/PublicMint/send-signed-tx/node_modules/truffle-hdwallet-provider/dist/index.js:15:783473)
at IncomingMessage.<anonymous> (/Users/carlosfaria/code/PublicMint/send-signed-tx/node_modules/truffle-hdwallet-provider/dist/index.js:15:782731)
at IncomingMessage.emit (events.js:203:15)
at endReadableNT (\_stream_readable.js:1129:12)
at process.\_tickCallback (internal/process/next_tick.js:63:19)
```
## Panheon Official 1.2 (IBFT)
### Transaction succeeded output:
```
result { blockHash:
'0xfa8382d15ee2e7e5744b619d750748d6847e69aa99ce058791018610d1cd8084',
blockNumber: 1116,
contractAddress: null,
cumulativeGasUsed: 29756,
from: '0x8717ed44ceb53f15db9cf1bec75a037a70232ac8',
gasUsed: 29756,
logsBloom:
'0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
status: '0x1',
to: '0xab56e88f626b382840579df7c2d9ec706adb32bd',
transactionHash:
'0x015d57d40d88e357e0805d82a582c6f1ffa50890a775a65a43de74c8fcf075cf',
transactionIndex: 0,
events: {} }
```
Status: 1 --> Succeeded!
### Transaction reverting output:
```
result { blockHash:
'0x02b7a51d4ab1cf7ce3790a99f85d2e8bfb78671a27f4cc9525817e083792872c',
blockNumber: 952,
contractAddress: null,
cumulativeGasUsed: 24444,
from: '0x994e6a8c5f4c15fd004b6dacb305cc1213c5503b',
gasUsed: 24444,
logsBloom:
'0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
status: '0x0',
to: '0xab56e88f626b382840579df7c2d9ec706adb32bd',
transactionHash:
'0xa93e5b4da5293a25026bd889e9c6d36212c650931a704c6602a83c7e5a8cbe86',
transactionIndex: 0,
events: {} }
```
Status: 0 -> Transaction Failed
But no reason is outputed :(
以上是关于markdown 当在万神网络中,在Ganache中恢复时的事务具有不同的输出的主要内容,如果未能解决你的问题,请参考以下文章
mac ganache安装以及在metamask创建ganache网络和账户导入