Skip to content

Commit df42973

Browse files
Alexey-N-Chernyshovturuslanmasterjedy
authored
Refactor/actor method actor (#116)
Signed-off-by: Alexey-N-Chernyshov <[email protected]> Co-authored-by: Ruslan Tushov <[email protected]> Co-authored-by: Yura Zarudniy <[email protected]>
1 parent 7284eae commit df42973

File tree

12 files changed

+764
-581
lines changed

12 files changed

+764
-581
lines changed

core/vm/actor/actor_method.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
#include "vm/exit_code/exit_code.hpp"
1313
#include "vm/runtime/runtime.hpp"
1414

15-
#define ACTOR_METHOD(name) \
16-
outcome::result<InvocationOutput> name( \
17-
const Actor &actor, Runtime &runtime, const MethodParams &params)
15+
#define ACTOR_METHOD(name) \
16+
outcome::result<InvocationOutput> name(Runtime &runtime, \
17+
const MethodParams &params)
1818

1919
namespace fc::vm::actor {
2020

@@ -30,7 +30,7 @@ namespace fc::vm::actor {
3030
* @return InvocationOutput - invocation method result or error occurred
3131
*/
3232
using ActorMethod = std::function<outcome::result<InvocationOutput>(
33-
const Actor &, Runtime &, const MethodParams &)>;
33+
Runtime &, const MethodParams &)>;
3434

3535
/// Actor methods exported by number
3636
using ActorExports = std::map<MethodNumber, ActorMethod>;

0 commit comments

Comments
 (0)