Skip to content

Commit

Permalink
Merge pull request #334 from ewasm/externalbalance
Browse files Browse the repository at this point in the history
Rename externalBalance to getExternalBalance
  • Loading branch information
axic committed Aug 19, 2018
2 parents 4dc1012 + 73d854e commit 8780d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,13 @@ namespace hera {
return Literal();
}

if (import->base == Name("getBalance")) {
if (import->base == Name("getExternalBalance")) {
heraAssert(arguments.size() == 2, string("Argument count mismatch in: ") + import->base.str);

uint32_t addressOffset = static_cast<uint32_t>(arguments[0].geti32());
uint32_t resultOffset = static_cast<uint32_t>(arguments[1].geti32());

HERA_DEBUG << "getBalance " << hex << addressOffset << " " << resultOffset << dec << "\n";
HERA_DEBUG << "getExternalBalance " << hex << addressOffset << " " << resultOffset << dec << "\n";

evmc_address address = loadUint160(addressOffset);
evmc_uint256be result;
Expand Down

0 comments on commit 8780d31

Please sign in to comment.