From 14cff58fa541a02ac28ba79ec12080b32164e18e Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 17 Oct 2023 09:15:24 +0200 Subject: [PATCH] Make GasConfig non_exhaustive GasConfig is currently not exported, making this a non-breaking change. But we want to be prepared to add more crypto algorithms with their gas configuration. --- packages/vm/src/environment.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vm/src/environment.rs b/packages/vm/src/environment.rs index 5dfd268166..d6a974cb05 100644 --- a/packages/vm/src/environment.rs +++ b/packages/vm/src/environment.rs @@ -28,6 +28,7 @@ pub enum Never {} /** gas config data */ #[derive(Clone, PartialEq, Eq, Debug)] +#[non_exhaustive] pub struct GasConfig { /// Gas costs of VM (not Backend) provided functionality /// secp256k1 signature verification cost