diff --git a/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx b/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx index b358e8216..5f7ec6ccb 100644 --- a/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx +++ b/dapps/react-dapp-v2/src/contexts/JsonRpcContext.tsx @@ -1574,12 +1574,11 @@ export function JsonRpcContextProvider({ request: { method, params: { - deploy: DeployUtil.deployToJson(transferDeploy), + deploy: DeployUtil.deployToJson(transferDeploy).deploy, address, }, }, }); - const signedDeploy = DeployUtil.deployFromJson(result).unwrap(); const hash = await casperClient.putDeploy(signedDeploy); return { diff --git a/wallets/react-wallet-v2/src/utils/CasperRequestHandler.ts b/wallets/react-wallet-v2/src/utils/CasperRequestHandler.ts index 251060c7a..4e25ba38a 100644 --- a/wallets/react-wallet-v2/src/utils/CasperRequestHandler.ts +++ b/wallets/react-wallet-v2/src/utils/CasperRequestHandler.ts @@ -19,7 +19,7 @@ export async function approveCasperRequest( return formatJsonRpcResult(id, signedMessage) case CASPER_SIGNING_METHODS.CASPER_SIGN_DEPLOY: - const deploy = DeployUtil.deployFromJson(request.params.deploy).unwrap() + const deploy = DeployUtil.deployFromJson(request.params).unwrap() const signedDeploy = await wallet.signDeploy(deploy) return formatJsonRpcResult(id, DeployUtil.deployToJson(signedDeploy))