chore: make ipfs the default bytecodehash again (#1128)
This commit is contained in:
parent
5940f9bfcc
commit
876a19d636
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue