chore: make ipfs the default bytecodehash again (#1128)

This commit is contained in:
Matthias Seitz 2022-04-10 00:11:46 +02:00 committed by GitHub
parent 5940f9bfcc
commit 876a19d636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -490,7 +490,7 @@ impl From<BytecodeHash> for SettingsMetadata {
/// Determines the hash method for the metadata hash that is appended to the bytecode. /// Determines the hash method for the metadata hash that is appended to the bytecode.
/// ///
/// While solc's default is `Ipfs`, see <https://docs.soliditylang.org/en/latest/using-the-compiler.html#compiler-api>, the default for this type is `None` to ensure deterministic code output. /// Solc's default is `Ipfs`, see <https://docs.soliditylang.org/en/latest/using-the-compiler.html#compiler-api>.
#[derive(Clone, Debug, Copy, PartialEq, Eq, Serialize, Deserialize)] #[derive(Clone, Debug, Copy, PartialEq, Eq, Serialize, Deserialize)]
pub enum BytecodeHash { pub enum BytecodeHash {
Ipfs, Ipfs,
@ -500,7 +500,7 @@ pub enum BytecodeHash {
impl Default for BytecodeHash { impl Default for BytecodeHash {
fn default() -> Self { fn default() -> Self {
BytecodeHash::None BytecodeHash::Ipfs
} }
} }