Skip to content

Commit

Permalink
Rename externalBalance to getExternalBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Aug 19, 2018
1 parent a19524c commit 73d854e
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 73d854e

Please sign in to comment.