diff --git a/webapp/src/constants/rpcMethods.ts b/webapp/src/constants/rpcMethods.ts index acec4e264..381f7a986 100644 --- a/webapp/src/constants/rpcMethods.ts +++ b/webapp/src/constants/rpcMethods.ts @@ -19,6 +19,7 @@ export const FINALIZE_PSBT = 'finalizepsbt'; export const DECODE_RAW_TRANSACTION = 'decoderawtransaction'; export const CREATE_MASTER_NODE = 'createmasternode'; export const CREATE_TOKEN = 'createtoken'; +export const UPDATE_TOKEN = 'updatetoken'; export const LIST_MASTER_NODE = 'listmasternodes'; export const LIST_TOKEN = 'listtokens'; export const DESTROY_TOKEN = 'destroytoken'; diff --git a/webapp/src/containers/TokensPage/components/CreateToken/CreateDCT/index.tsx b/webapp/src/containers/TokensPage/components/CreateToken/CreateDCT/index.tsx index 90a60dfc2..88af09841 100644 --- a/webapp/src/containers/TokensPage/components/CreateToken/CreateDCT/index.tsx +++ b/webapp/src/containers/TokensPage/components/CreateToken/CreateDCT/index.tsx @@ -38,12 +38,15 @@ interface CreateDCTProps { isConfirmationModalOpen: string; setIsConfirmationModalOpen: any; createdTokenData: any; + updatedTokenData: any; wait: number; setWait: any; - confirmation: () => void; + createConfirmation: () => void; + updateConfirmation: () => void; handleDropDowns: (data: any, field: any, amount: any) => void; cancelConfirmation: () => void; - isErrorCreatingToken: any; + isErrorCreatingToken: string; + isErrorUpdatingToken: string; isUpdate: boolean; } @@ -60,10 +63,13 @@ const CreateDCT: React.FunctionComponent = ( isConfirmationModalOpen, setIsConfirmationModalOpen, cancelConfirmation, - confirmation, + createConfirmation, + updateConfirmation, wait, createdTokenData, isErrorCreatingToken, + updatedTokenData, + isErrorUpdatingToken, } = props; return ( @@ -429,7 +435,9 @@ const CreateDCT: React.FunctionComponent = (