Exceeded the instruction limit for single message execution
Dfinity Forum » TypeScript
by rainboy93
2w ago
I got Exceeded the instruction limit for single message execution when call this code. Is this normal? const mnemonic = 'unit jelly zone token virus blue parrot pottery stage girl version grief left black foam donkey fatigue silly bitter fox manage note indoor leisure' const seed = bip39.mnemonicToSeedSync(mnemonic) 3 posts - 3 participants Read full topic ..read more
Visit website
Ares: Azle REST APIs with Internet Identity
Dfinity Forum » TypeScript
by adrian-d-hidalgo
2M ago
Hi everyone! We just released the new Ares beta version, but what is it about? As you know, a few weeks ago, @lastmjs announced that you can build REST APIs with Azle; that’s quite a big announcement! (personally, I’d love it). However, signing the requests using Internet Identity and those APIs is not possible. Ares is an Axios-like library that enables REST API requests but integrates Internet Identity (or any similar identity). To use it you only need two things: A REST API in Azle (or any other REST API that complies with the .did that Azle generates). Install the @bundly/ares library insi ..read more
Visit website
SyntaxError: Cannot use import statement outside a module
Dfinity Forum » TypeScript
by AliSci
3M ago
SyntaxError: Cannot use import statement outside a module ts-jest[backports] (WARN) "[jest-config].globals.ts-jest.tsConfig" is deprecated, use "[jest-config].globals.ts-jest.tsconfig" instead. ts-jest[backports] (WARN) Your Jest configuration is outdated. Use the CLI to help migrating it: ts-jest config:migrate <config-file>. FAIL src/frontend/tests/React/App.test.tsx ● Test suite failed to run Jest encountered an unexpected token Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax, or when Jest is not confi ..read more
Visit website
Can't get canister status with managementCanister.canister_status
Dfinity Forum » TypeScript
by byurhannurula
4M ago
I am building an IC Storage canister with TypeScript and azle. I will have a parent canister like Facade and it will deploy child canisters for every user. I wanted to get the status of a canister (to check if there is free space and if not deploy a new canister for the user) but was not able to make it work. Tried different ways but always same error Error: Call was rejected: Request ID: ea9fe00aa6199cda01acd5edc00489629738dfb42303b169991ac2095e5ba80b Reject code: 5 Reject text: Canister cbopz-duaaa-aaaaa-qaaka-cai trapped explicitly: InternalError: unhandled tag: -10 This is the code Paren ..read more
Visit website
Error fetching an array in a Azle canister
Dfinity Forum » TypeScript
by iamenochchirima
6M ago
I am creating a project following this azle example. I was having an error in my project when calling a query call to return an array so I decided to run the example itself and I’m getting this same error when I call the readUsers function: Call failed: Canister: bkyz2-fmaaa-aaaaa-qaaaq-cai Method: readUsers (query) "Status": "rejected" "Code": "CanisterError" "Message": "IC0503: Canister bkyz2-fmaaa-aaaaa-qaaaq-cai trapped explicitly: Panicked at 'called `Result::unwrap()` on an `Err` value: Uncaught Error: type mismatch: type on the wire text, expect type principal\n at checkType (main.js:9 ..read more
Visit website
Esbuild on macOs M1 (apple chip)
Dfinity Forum » TypeScript
by AliSci
9M ago
dfx deploy frontend cuses this issue Error: Failed while trying to deploy canisters. Caused by: Failed while trying to deploy canisters. Failed to build all canisters. Failed while trying to build all canisters. The post-build step failed for canister 'bw4dl-smaaa-aaaaa-qaacq-cai' (frontend) with an embedded error: Failed to build frontend for network 'local'.: The command '"npm" "run" "build"' failed with exit status 'exit status: 1'. Stdout: > dfn-react-ts@0.1.3 prebuild > dfx generate > dfn-react-ts@0.1.3 build > vite build Stderr: Generating type declarations ..read more
Visit website
New Feature - WebCrypto Identities in agent-js
Dfinity Forum » TypeScript
by kpeacock
1y ago
Available for testing in the 0.12.2-beta.0 release, @dfinity/identity now supports the SubtleCrypto api. You can use an ECDSAKeyIdentity using the P-256 curve to make calls to the IC, using native CryptoKey and CryptoKeyPairs. Importantly, this identity pattern is non-exportable by default, so even malicious code can’t export your key to use outside a secure browser context. CryptoKeyPairs can be stored in IndexedDb instead of localstorage, which also enhances the security of the identity. With more experimentation, this new Identity type may be suitable to be the default, recommended way to m ..read more
Visit website
Agent-JS 0.12.0
Dfinity Forum » TypeScript
by kpeacock
1y ago
Agent-JS 0.12.0 is released, with a small breaking change to how certificates are read. This enables a new security feature of checking the canister range of a delegation, according the Internet Computer public interface spec Release notes here: Release v0.12.0 · dfinity/agent-js · GitHub 2 posts - 1 participant Read full topic ..read more
Visit website
Convert Principal to subaccount ID in TS (code sample)
Dfinity Forum » TypeScript
by 0rions
1y ago
Convert Principal to subaccount ID in TS or JS. This is an issue that I had, I just wanted to share the code that I made as I wasn’t able to find it anywhere. Here is my code sample : GitHub GitHub - leo-ship-it/convert-principal-to-subaccount-IC Contribute to leo-ship-it/convert-principal-to-subaccount-IC development by creating an account on GitHub. 1 post - 1 participant Read full topic ..read more
Visit website
About the JavaScript category
Dfinity Forum » TypeScript
by kpeacock
1y ago
This is a topic to help people tag and identify discussions about JavaScript and TypeScript development. Feel free to discuss general JS/TS development questions, or topics specific to the Internet Computer JavaScript agent. If your topic is specific to JavaScript, TypeScript, or Nodejs, feel free to add a tag to help people understand your issue at a glance 2 posts - 2 participants Read full topic ..read more
Visit website

Follow Dfinity Forum » TypeScript on FeedSpot

Continue with Google
Continue with Apple
OR