mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-25 13:57:59 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3ff5c20fba | |||
| fc7ce468ec | |||
| c887b398b4 | |||
| 028cffaeff | |||
| 27f8542342 | |||
| 38272a546d | |||
| f2c4eb1c80 | |||
| 94d93e87c2 |
@@ -79,9 +79,7 @@ impl CachedCompiler {
|
|||||||
compiler_version_or_requirement,
|
compiler_version_or_requirement,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
.inspect_err(|err| {
|
.inspect_err(|err| compilation_failure_report_callback(None, None, None, err.to_string()))
|
||||||
compilation_failure_report_callback(None, None, None, format!("{err:#}"))
|
|
||||||
})
|
|
||||||
.context("Failed to obtain compiler executable path")?;
|
.context("Failed to obtain compiler executable path")?;
|
||||||
let compiler_version = <P::Compiler as SolidityCompiler>::new(compiler_path.clone())
|
let compiler_version = <P::Compiler as SolidityCompiler>::new(compiler_path.clone())
|
||||||
.version()
|
.version()
|
||||||
@@ -91,7 +89,7 @@ impl CachedCompiler {
|
|||||||
None,
|
None,
|
||||||
Some(compiler_path.clone()),
|
Some(compiler_path.clone()),
|
||||||
None,
|
None,
|
||||||
format!("{err:#}"),
|
err.to_string(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.context("Failed to query compiler version")?;
|
.context("Failed to query compiler version")?;
|
||||||
@@ -234,7 +232,7 @@ async fn compile_contracts<P: Platform>(
|
|||||||
Some(compiler_version.clone()),
|
Some(compiler_version.clone()),
|
||||||
Some(compiler_path.as_ref().to_path_buf()),
|
Some(compiler_path.as_ref().to_path_buf()),
|
||||||
None,
|
None,
|
||||||
format!("{err:#}"),
|
err.to_string(),
|
||||||
)
|
)
|
||||||
})?
|
})?
|
||||||
// Adding the deployed libraries to the compiler.
|
// Adding the deployed libraries to the compiler.
|
||||||
@@ -262,7 +260,7 @@ async fn compile_contracts<P: Platform>(
|
|||||||
Some(compiler_version.clone()),
|
Some(compiler_version.clone()),
|
||||||
Some(compiler_path.as_ref().to_path_buf()),
|
Some(compiler_path.as_ref().to_path_buf()),
|
||||||
Some(compiler_input.clone()),
|
Some(compiler_input.clone()),
|
||||||
format!("{err:#}"),
|
err.to_string(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.context("Failed to configure compiler with sources and options")?;
|
.context("Failed to configure compiler with sources and options")?;
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ where
|
|||||||
.report_test_succeeded_event(steps_executed)
|
.report_test_succeeded_event(steps_executed)
|
||||||
.expect("Can't fail"),
|
.expect("Can't fail"),
|
||||||
Err(error) => reporter
|
Err(error) => reporter
|
||||||
.report_test_failed_event(format!("{error:#}"))
|
.report_test_failed_event(error.to_string())
|
||||||
.expect("Can't fail"),
|
.expect("Can't fail"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -55,7 +55,7 @@ if [ -n "$POLKADOT_SDK_DIR" ]; then
|
|||||||
|
|
||||||
if [ ! -x "$REVIVE_DEV_NODE_BIN" ] || [ ! -x "$ETH_RPC_BIN" ] || [ ! -x "$SUBSTRATE_NODE_BIN" ]; then
|
if [ ! -x "$REVIVE_DEV_NODE_BIN" ] || [ ! -x "$ETH_RPC_BIN" ] || [ ! -x "$SUBSTRATE_NODE_BIN" ]; then
|
||||||
echo -e "${YELLOW}Required binaries not found in release target. Building...${NC}"
|
echo -e "${YELLOW}Required binaries not found in release target. Building...${NC}"
|
||||||
(cd "$POLKADOT_SDK_DIR" && cargo build --release --package staging-node-cli --package pallet-revive-eth-rpc --package revive-dev-node)
|
(cd "$POLKADOT_SDK_DIR" && cargo build --release --package revive-dev-node --package eth-rpc --package substrate-node)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for bin in "$REVIVE_DEV_NODE_BIN" "$ETH_RPC_BIN" "$SUBSTRATE_NODE_BIN"; do
|
for bin in "$REVIVE_DEV_NODE_BIN" "$ETH_RPC_BIN" "$SUBSTRATE_NODE_BIN"; do
|
||||||
|
|||||||
Reference in New Issue
Block a user