Skip to content
This repository has been archived by the owner on Jun 21, 2020. It is now read-only.

Moving log of bytecode returning from deploy_contract function from info to debug level #179

Merged
merged 7 commits into from
Jun 19, 2019

Conversation

moriaab
Copy link
Contributor

@moriaab moriaab commented Jun 18, 2019

The result returned from deploy_contract function contains bytecode, which may be huge. I moved it from info to debug level.

@moriaab moriaab changed the title DEV: moving log of bytecode returning in deploy_contract one level DEV: moving log of bytecode returning from deploy_contract function from info to debug level Jun 18, 2019
@moriaab moriaab changed the title DEV: moving log of bytecode returning from deploy_contract function from info to debug level Moving log of bytecode returning from deploy_contract function from info to debug level Jun 18, 2019
@moriaab moriaab requested a review from AvishaiW June 18, 2019 13:55
Copy link
Contributor

@AvishaiW AvishaiW left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the available circumstances, this looks great!

@@ -353,9 +351,16 @@ pub(self) mod handling {
// Save the ExeCode into the DB.
let key = DeltaKey::new(contract_address, Stype::ByteCode);
db.create(&key, &v.output)?;
Ok(v.into_deploy_response(&bytecode))
let wasm_result = v.into_deploy_response(&bytecode);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasm_result is not a good name since it contains an IpcResponse

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

enigma-core/app/src/networking/ipc_listener.rs Outdated Show resolved Hide resolved
enigma-core/app/src/networking/messages.rs Outdated Show resolved Hide resolved
moriaab and others added 5 commits June 19, 2019 17:36
Co-Authored-By: Avishai Weingarten <33716232+AvishaiW@users.noreply.github.com>
Co-Authored-By: Avishai Weingarten <33716232+AvishaiW@users.noreply.github.com>
@moriaab moriaab merged commit d1a7a30 into develop Jun 19, 2019
@moriaab moriaab deleted the log_bytecode branch June 19, 2019 16:01
lacabra added a commit that referenced this pull request Jul 10, 2019
AvishaiW added a commit that referenced this pull request Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants