From 876a19d636cc52bb11b8b1d65f69c9d05cfed966 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Sun, 10 Apr 2022 00:11:46 +0200 Subject: [PATCH] chore: make ipfs the default bytecodehash again (#1128) --- ethers-solc/src/artifacts/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ethers-solc/src/artifacts/mod.rs b/ethers-solc/src/artifacts/mod.rs index 9ded58dc..8bce8d9e 100644 --- a/ethers-solc/src/artifacts/mod.rs +++ b/ethers-solc/src/artifacts/mod.rs @@ -490,7 +490,7 @@ impl From for SettingsMetadata { /// Determines the hash method for the metadata hash that is appended to the bytecode. /// -/// While solc's default is `Ipfs`, see , the default for this type is `None` to ensure deterministic code output. +/// Solc's default is `Ipfs`, see . #[derive(Clone, Debug, Copy, PartialEq, Eq, Serialize, Deserialize)] pub enum BytecodeHash { Ipfs, @@ -500,7 +500,7 @@ pub enum BytecodeHash { impl Default for BytecodeHash { fn default() -> Self { - BytecodeHash::None + BytecodeHash::Ipfs } }