diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-28 19:19:31 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-11-30 05:54:28 +0800 |
commit | 94cae6339063fb6c33dc477991ac3d0933dc562f (patch) | |
tree | ef641fb0d9ff7b71dc75f333360d344e3194673d /test/ExecutionFramework.h | |
parent | 85ebe4e5c47f47aa46f76043279dc15962b617e4 (diff) | |
download | dexon-solidity-94cae6339063fb6c33dc477991ac3d0933dc562f.tar.gz dexon-solidity-94cae6339063fb6c33dc477991ac3d0933dc562f.tar.zst dexon-solidity-94cae6339063fb6c33dc477991ac3d0933dc562f.zip |
Add callFallback to ExectionFramework
Diffstat (limited to 'test/ExecutionFramework.h')
-rw-r--r-- | test/ExecutionFramework.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ExecutionFramework.h b/test/ExecutionFramework.h index 6ec1a06b..6c5a5764 100644 --- a/test/ExecutionFramework.h +++ b/test/ExecutionFramework.h @@ -73,6 +73,17 @@ public: return m_output; } + bytes const& callFallbackWithValue(u256 const& _value) + { + sendMessage(bytes(), false, _value); + return m_output; + } + + bytes const & callFallback() + { + return callFallbackWithValue(0); + } + template <class... Args> bytes const& callContractFunctionWithValue(std::string _sig, u256 const& _value, Args const&... _arguments) { |