From d91d05d559c983f56189651cca19645dae2a3ece Mon Sep 17 00:00:00 2001 From: Ben Kremer Date: Tue, 1 Mar 2022 13:56:47 +0000 Subject: [PATCH] fix(react-dapp-v2): fixes accessing of `result.signature` on cosmos RPC --- dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx b/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx index 141a429..126a234 100644 --- a/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx +++ b/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx @@ -414,7 +414,7 @@ export function JsonRpcContextProvider({ children }: { children: ReactNode | Rea method: "cosmos_signDirect", address, valid, - result: result.signature.signature, + result: result.signature, }; }), testSignAmino: _createJsonRpcRequestHandler(async (chainId: string, address: string) => { @@ -458,7 +458,7 @@ export function JsonRpcContextProvider({ children }: { children: ReactNode | Rea method: "cosmos_signAmino", address, valid, - result: result.signature.signature, + result: result.signature, }; }), };