소스 검색

Delegate jsonRpc_ to child method in system.multicall.

Tatsuhiro Tsujikawa 14 년 전
부모
커밋
da0ab67324
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/RpcMethodImpl.cc

+ 2 - 2
src/RpcMethodImpl.cc

@@ -1383,8 +1383,8 @@ SharedHandle<ValueBase> SystemMulticallRpcMethod::process
                    (DL_ABORT_EX("Recursive system.multicall forbidden.")));
       continue;
     }
-    SharedHandle<RpcMethod> method =
-      RpcMethodFactory::create(methodName->s());
+    SharedHandle<RpcMethod> method = RpcMethodFactory::create(methodName->s());
+    method->setJsonRpc(getJsonRpc());
     RpcRequest innerReq
       (methodName->s(), static_pointer_cast<List>(methodDict->get(KEY_PARAMS)));
     RpcResponse res = method->execute(innerReq, e);