mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 05:47:58 +00:00
Update test-runner api (#9302)
* better apis * .... * ... * Genensis -> UnimportedGenesis * adds rpc for runtime upgrades * simplify test-runner * clean up test-runner api * remove unused imports * fix doc-test * fix line width * correct Node::clean * correct Node::clean * add deny rules * remove unused extern crates * remove mutex from node * Update test-utils/test-runner/Cargo.toml Co-authored-by: Andronik Ordian <write@reusable.software> * adds docs, removes Node::clean Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: Seun Lanlege <seun@parity.io>
This commit is contained in:
@@ -16,6 +16,20 @@
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
/// Use this to override host functions.
|
||||
/// eg
|
||||
/// ```rust
|
||||
/// use test_runner::override_host_functions;
|
||||
/// pub struct SignatureVerificationOverride;
|
||||
///
|
||||
/// impl sp_wasm_interface::HostFunctions for SignatureVerificationOverride {
|
||||
/// fn host_functions() -> Vec<&'static dyn sp_wasm_interface::Function> {
|
||||
/// override_host_functions!(
|
||||
/// "ext_crypto_ecdsa_verify_version_1", EcdsaVerify,
|
||||
/// )
|
||||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
#[macro_export]
|
||||
macro_rules! override_host_functions {
|
||||
($($fn_name:expr, $name:ident,)*) => {{
|
||||
|
||||
Reference in New Issue
Block a user