diff options
author | chriseth <c@ethdev.com> | 2016-11-30 00:47:47 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-12-01 23:03:59 +0800 |
commit | 6a7ff039df15be59fbb71dc3dfaad09fb0b8961f (patch) | |
tree | 01d433c964f51111800766c30f230dd4c0e680ea /libsolidity/codegen | |
parent | e0d4a3d518dc742d94571ef1e16b3f95765ec62f (diff) | |
download | dexon-solidity-6a7ff039df15be59fbb71dc3dfaad09fb0b8961f.tar.gz dexon-solidity-6a7ff039df15be59fbb71dc3dfaad09fb0b8961f.tar.zst dexon-solidity-6a7ff039df15be59fbb71dc3dfaad09fb0b8961f.zip |
Use CBOR encoding.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r-- | libsolidity/codegen/Compiler.cpp | 4 | ||||
-rw-r--r-- | libsolidity/codegen/Compiler.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index b7e0cc64..44264a07 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -31,12 +31,12 @@ using namespace dev::solidity; void Compiler::compileContract( ContractDefinition const& _contract, std::map<const ContractDefinition*, eth::Assembly const*> const& _contracts, - h256 const& _metadataHash + bytes const& _metadata ) { ContractCompiler runtimeCompiler(nullptr, m_runtimeContext, m_optimize); runtimeCompiler.compileContract(_contract, _contracts); - m_runtimeContext.appendAuxiliaryData(_metadataHash.asBytes()); + m_runtimeContext.appendAuxiliaryData(_metadata); // This might modify m_runtimeContext because it can access runtime functions at // creation time. diff --git a/libsolidity/codegen/Compiler.h b/libsolidity/codegen/Compiler.h index 58ef1963..eef078c1 100644 --- a/libsolidity/codegen/Compiler.h +++ b/libsolidity/codegen/Compiler.h @@ -43,7 +43,7 @@ public: void compileContract( ContractDefinition const& _contract, std::map<ContractDefinition const*, eth::Assembly const*> const& _contracts, - h256 const& _metadataHash + bytes const& _metadata ); /// Compiles a contract that uses DELEGATECALL to call into a pre-deployed version of the given /// contract at runtime, but contains the full creation-time code. |