Skip to content

Commit d4a3e4e

Browse files
raorlaabbesBenayache
authored andcommitted
fix(iapp): update entrypoint command
1 parent 2623c09 commit d4a3e4e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/guides/build-iapp/advanced/build-your-first-sgx-iapp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ Edit `iexec.json` and fill in the standard keys and the `mrenclave` object:
366366
"mrenclave": {
367367
"framework": "SCONE", // TEE framework (keep default value)
368368
"version": "v5.9", // Scone version (keep default value)
369-
"entrypoint": "node /app/app.js" OR "python3 /app/app.py", // update it with your own image entrypoint
369+
"entrypoint": "node --disable-wasm-trap-handler /app/app.js" OR "python3 /app/app.py", // update it with your own image entrypoint
370370
"heapSize": 1073741824, // heap size in bytes, update it with --heap option value used in sconify.sh script during TEE image build
371371
"fingerprint": "<mrenclave>" // fingerprint of the enclave code (mrenclave), without 0x prefix, see how to retrieve it below
372372
}

src/references/dataProtector/getting-started.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ const dataProtectorCore = new IExecDataProtectorCore(web3Provider);
7272
import { IExecDataProtectorCore, getWeb3Provider } from '@iexec/dataprotector';
7373

7474
// Get Web3 provider from a private key
75-
const web3Provider = getWeb3Provider('YOUR_PRIVATE_KEY');
75+
const web3Provider = getWeb3Provider('YOUR_PRIVATE_KEY', {
76+
host: {{chainId}}, // `{{chainName}}`
77+
});
7678

7779
// Instantiate the Core module
7880
const dataProtectorCore = new IExecDataProtectorCore(web3Provider);
@@ -145,6 +147,17 @@ discontinuity.
145147
</CardGrid>
146148

147149
<script setup>
150+
import { computed } from 'vue';
151+
import useUserStore from '@/stores/useUser.store';
148152
import CardGrid from '@/components/CardGrid.vue';
149153
import ProjectCard from '@/components/ProjectCard.vue';
154+
import {getChainById} from '@/utils/chain.utils';
155+
156+
// Get current chain info
157+
const userStore = useUserStore();
158+
const selectedChain = computed(() => userStore.getCurrentChainId());
159+
160+
const chainData = computed(() => getChainById(selectedChain.value));
161+
const chainId = computed(() => chainData.value.id);
162+
const chainName = computed(() => chainData.value.name);
150163
</script>

0 commit comments

Comments
 (0)