diff --git a/libraries/chain/webassembly/action.cpp b/libraries/chain/webassembly/action.cpp index 307ddafe6b..fa8bc58981 100644 --- a/libraries/chain/webassembly/action.cpp +++ b/libraries/chain/webassembly/action.cpp @@ -5,6 +5,7 @@ namespace eosio { namespace chain { namespace webassembly { int32_t interface::read_action_data(legacy_span memory) const { auto s = context.get_action().data.size(); + if( s == 0 ) return s; if( memory.size() == 0 ) return s; auto copy_size = std::min( static_cast(memory.size()), s );