Skip to content

Commit

Permalink
added handling for revert reason
Browse files Browse the repository at this point in the history
Signed-off-by: DenisRybas <[email protected]>
  • Loading branch information
DenisRybas committed Feb 2, 2024
1 parent b118023 commit bcccbc6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
24 changes: 1 addition & 23 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ x-besu-def:
/opt/besu/bin/besu \
--config-file=/config/config.toml \
--p2p-host=$$(hostname -i) \
--revert-reason-enabled=true \
--rpc-http-api=EEA,WEB3,ETH,NET,TRACE,DEBUG,ADMIN,TXPOOL,PERM,${BESU_CONS_ALGO:-QBFT} \
--rpc-ws-api=EEA,WEB3,ETH,NET,TRACE,DEBUG,ADMIN,TXPOOL,PERM,${BESU_CONS_ALGO:-QBFT} ;
x-ethsignerProxy-def:
&ethsignerProxy-def
image: consensys/ethsigner:${ETHSIGNER_VERSION:-latest}
Expand Down Expand Up @@ -176,16 +169,6 @@ services:
quorum-dev-quickstart:
ipv4_address: 172.16.239.40











prometheus:
image: "prom/prometheus"
volumes:
Expand Down Expand Up @@ -234,11 +217,6 @@ services:
quorum-dev-quickstart:
ipv4_address: 172.16.239.35






volumes:
public-keys:
prometheus:
Expand Down
2 changes: 1 addition & 1 deletion network/config/besu/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

LOG4J_CONFIGURATION_FILE=/config/log-config.xml

BESU_REVERT_REASON_ENABLED=true

1 change: 1 addition & 0 deletions network/config/besu/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ logging="INFO"
data-path="/opt/besu/data"
host-allowlist=["*"]
min-gas-price=0
revert-reason-enabled=true

# rpc
rpc-http-enabled=true
Expand Down
1 change: 1 addition & 0 deletions vdr/src/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ impl From<Web3Error> for VdrError {
Web3Error::Unreachable => VdrError::ClientNodeUnreachable,
Web3Error::InvalidResponse(err) => VdrError::ClientInvalidResponse(err),
Web3Error::Rpc(err) => VdrError::ClientTransactionReverted(json!(err).to_string()),
Web3Error::Revert(err) => VdrError::ClientTransactionReverted(err),
_ => VdrError::ClientUnexpectedError(value.to_string()),
};

Expand Down

0 comments on commit bcccbc6

Please sign in to comment.