Skip to content

Commit 4fdcb29

Browse files
committed
update code for return evm err msg
1 parent c9f36c8 commit 4fdcb29

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/peersafe/app/misc/Executive.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace ripple {
88
const std::string ERRFUNSIG = "08C379A0";
99
const std::string REVERTFUNSIG = "4E487B71";
10+
const std::string SELFDEFFUNSIG = "00000000";
1011
/**
1112
* @brief Message-call/contract-creation executor; useful for executing transactions.
1213
*

src/peersafe/app/misc/impl/Executive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ void Executive::formatOutput(eth::owning_bytes_ref output)
456456
Blob blob;
457457

458458
//self-define exception in go()
459-
if ((str.length() >=4) && (str.substr(0, 4) == "\0\0\0\0"))
459+
if (funSig == SELFDEFFUNSIG)
460460
{
461461
blob = strCopy(str.substr(4,str.size() - 4));
462462
}

0 commit comments

Comments
 (0)