Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
DOBEN committed Aug 16, 2023
1 parent c4c3b22 commit ee98e79
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion examples/eSealing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"license": "Apache-2.0",
"dependencies": {
"@concordium/react-components": "^0.3.0",
"@concordium/web-sdk": "^3.3.1",
"@thi.ng/leb128": "^2.1.18",
"@types/sha256": "^0.2.0",
"@walletconnect/types": "^2.1.4",
Expand Down
4 changes: 2 additions & 2 deletions examples/eSealing/src/eSealing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default function SEALING(props: WalletConnectionProps) {

useEffect(() => {
// View file record.
if (grpcClient && account && fileHashHex !== '') {
if (grpcClient && fileHashHex !== '') {
viewFile(grpcClient, fileHashHex)
.then((record) => {
setGetFileError('');
Expand All @@ -169,7 +169,7 @@ export default function SEALING(props: WalletConnectionProps) {
setWitness('');
});
}
}, [grpcClient, account, fileHashHex]);
}, [grpcClient, fileHashHex]);

const [isRegisterFilePage, setIsRegisterFilePage] = useState(true);
const [hash, setHash] = useState('');
Expand Down
4 changes: 2 additions & 2 deletions examples/eSealing/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createContext } from 'react';
import { AccountTransactionType, CcdAmount, UpdateContractPayload } from '@concordium/web-sdk';
import { AccountTransactionType, CcdAmount } from '@concordium/web-sdk';
import { WalletConnection, moduleSchemaFromBase64 } from '@concordium/react-components';
import { E_SEALING_CONTRACT_NAME, E_SEALING_RAW_SCHEMA } from './constants';

Expand All @@ -24,7 +24,7 @@ export async function register(
},
receiveName: `${E_SEALING_CONTRACT_NAME}.registerFile`,
maxContractExecutionEnergy: 30000n,
} as UpdateContractPayload,
},
{
parameters: fileHashHex,
schema: moduleSchemaFromBase64(E_SEALING_RAW_SCHEMA),
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10205,7 +10205,6 @@ __metadata:
resolution: "e_sealing@workspace:examples/eSealing"
dependencies:
"@concordium/react-components": ^0.3.0
"@concordium/web-sdk": ^3.3.1
"@craftamap/esbuild-plugin-html": ^0.4.0
"@thi.ng/leb128": ^2.1.18
"@types/node": ^18.7.23
Expand Down

0 comments on commit ee98e79

Please sign in to comment.