Skip to content

Commit

Permalink
Merge pull request #199 from NethermindEth/wallet_fix
Browse files Browse the repository at this point in the history
fix argentX error
  • Loading branch information
rjnrohit authored Nov 8, 2023
2 parents 75981a2 + 5f5520e commit e924313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin/src/features/Compilation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ const Compilation: React.FC<CompilationProps> = ({ setAccordian }) => {
compiledClassHash,
classHash,
sierraClassHash,
sierra,
sierra: sierraFile,
casm,
path,
deployedInfo: [],
Expand Down
6 changes: 3 additions & 3 deletions plugin/src/features/Deployment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const Deployment: React.FC<DeploymentProps> = ({ setActiveTab }) => {
type: 'info',
title: `Deploying ${selectedContract?.name ?? ''} ...`
})
let classHash = selectedContract?.sierraClassHash
let classHash = selectedContract?.classHash
let updatedTransactions = transactions
try {
if (account === null || provider === null) {
Expand All @@ -123,11 +123,11 @@ const Deployment: React.FC<DeploymentProps> = ({ setActiveTab }) => {
setDeployStatus('Declaring...')
try {
try {
await account.getClassByHash(selectedContract.sierraClassHash)
await account.getClassByHash(selectedContract.classHash)
await remixClient.call(
'notification' as any,
'toast',
`ℹ️ Contract with classHash: ${selectedContract.sierraClassHash} already has been declared, proceeding to deployment...`
`ℹ️ Contract with classHash: ${selectedContract.classHash} already has been declared, proceeding to deployment...`
)
} catch (error) {
const declareResponse = await account.declare({
Expand Down

0 comments on commit e924313

Please sign in to comment.