bsc/accounts/abi/bind
gary rong b9df7ecdc3
all: seperate consensus error and evm internal error (#20830)
* all: seperate consensus error and evm internal error

There are actually two types of error will be returned when
a tranaction/message call is executed: (a) consensus error
(b) evm internal error. The former should be converted to
a consensus issue, e.g. The sender doesn't enough asset to
purchase the gas it specifies. The latter is allowed since
evm itself is a blackbox and internal error is allowed to happen.

This PR emphasizes the difference by introducing a executionResult
structure. The evm error is embedded inside. So if any error
returned, it indicates consensus issue happens.

And also this PR improve the `EstimateGas` API to return the concrete
revert reason if the transaction always fails

* all: polish

* accounts/abi/bind/backends: add tests

* accounts/abi/bind/backends, internal: cleanup error message

* all: address comments

* core: fix lint

* accounts, core, eth, internal: address comments

* accounts, internal: resolve revert reason if possible

* accounts, internal: address comments
2020-04-22 11:25:36 +03:00
..
backends all: seperate consensus error and evm internal error (#20830) 2020-04-22 11:25:36 +03:00
auth.go accounts, cmd, contracts, les: integrate clef for transaction signing (#19783) 2019-07-03 22:54:59 +03:00
backend.go accounts/abi/bind: support event filtering in abigen 2018-01-24 10:54:13 +02:00
base_test.go accounts/abi: Fix method overwritten by same name methods. (#17099) 2019-07-01 16:51:21 +02:00
base.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
bind_test.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
bind.go accounts/abi: Prevent recalculation of internal fields (#20895) 2020-04-20 09:01:04 +02:00
template.go accounts/abi: implement new fallback functions (#20764) 2020-04-15 09:23:58 +02:00
topics_test.go accounts/abi/bind: fixed erroneous filtering of negative ints (#20865) 2020-04-09 10:54:57 +02:00
topics.go accounts/abi/bind: fixed erroneous filtering of negative ints (#20865) 2020-04-09 10:54:57 +02:00
util_test.go accounts/abi/bind: support closing a simulated backend 2019-07-31 11:35:57 +03:00
util.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00