@@ -3,15 +3,14 @@ import { deletePipeline, sendJobCommand } from '@lib/api/deeploy';
33import { getCurrentEpoch , getDevAddress , isUsingDevAddress } from '@lib/config' ;
44import { DeploymentContextType , useDeploymentContext } from '@lib/contexts/deployment' ;
55import { InteractionContextType , useInteractionContext } from '@lib/contexts/interaction' ;
6- import { buildDeeployMessage } from '@lib/deeploy-utils' ;
6+ import { buildDeeployMessage , generateDeeployNonce } from '@lib/deeploy-utils' ;
77import { routePath } from '@lib/routes/route-paths' ;
88import ContextMenuWithTrigger from '@shared/ContextMenuWithTrigger' ;
99import { RunningJobWithResources } from '@typedefs/deeploys' ;
1010import { useState } from 'react' ;
1111import toast from 'react-hot-toast' ;
1212import { RiArrowDownSLine } from 'react-icons/ri' ;
1313import { useNavigate } from 'react-router-dom' ;
14- import { generateNonce } from 'siwe' ;
1514import { useAccount , useSignMessage } from 'wagmi' ;
1615
1716export default function JobActions ( {
@@ -61,7 +60,7 @@ export default function JobActions({
6160 return ;
6261 }
6362
64- const nonce = generateNonce ( ) ;
63+ const nonce = generateDeeployNonce ( ) ;
6564
6665 const payload = {
6766 app_id : job ! . alias ,
@@ -145,7 +144,7 @@ export default function JobActions({
145144 throw new Error ( 'Job data unavailable' ) ;
146145 }
147146
148- const nonce = generateNonce ( ) ;
147+ const nonce = generateDeeployNonce ( ) ;
149148
150149 const payload = {
151150 app_id : job . alias ,
0 commit comments