Skip to content

Commit 08e8ee6

Browse files
cameelr0qs
authored andcommitted
fixup! [libevmasm] Add support to import evm assembly json.
1 parent dfa4f16 commit 08e8ee6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libevmasm/Assembly.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ Json::Value Assembly::assemblyJSON(std::map<std::string, unsigned> const& _sourc
508508
return root;
509509
}
510510

511-
std::pair<std::shared_ptr<Assembly>, std::vector<std::string>> Assembly::fromJSON(Json::Value const& _json, std::vector<std::string> const& _sourceList, int _level)
511+
std::pair<std::shared_ptr<Assembly>, std::vector<std::string>> Assembly::fromJSON(Json::Value const& _json, std::vector<std::string> const& _sourceList, size_t _level)
512512
{
513513
solRequire(_json.isObject(), AssemblyImportException, "Supplied JSON is not an object.");
514514
static std::set<std::string> const validMembers{".code", ".data", ".auxdata", "sourceList"};

libevmasm/Assembly.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class Assembly
165165
static std::pair<std::shared_ptr<Assembly>, std::vector<std::string>> fromJSON(
166166
Json::Value const& _json,
167167
std::vector<std::string> const& _sourceList = {},
168-
int _level = 0
168+
size_t _level = 0
169169
);
170170

171171
/// Mark this assembly as invalid. Calling ``assemble`` on it will throw.

0 commit comments

Comments
 (0)