Skip to content

Comments

SDK-643 Update new project files for JS user library#190

Closed
paulyoung wants to merge 33 commits intomasterfrom
paulyoung/dfx-new-project-files
Closed

SDK-643 Update new project files for JS user library#190
paulyoung wants to merge 33 commits intomasterfrom
paulyoung/dfx-new-project-files

Conversation

@paulyoung
Copy link
Contributor

This currently doesn't work because the default serve_root in dfx.json defaults to src/hello/public, which means we can’t import canisters/hello/main.js with a relative path.

This reverts commit eec6a2d.
Now that dfx generates canister IDs as unsigned 64-bit integers (little endian)
we need to make sure we can handle that in JavaScript.

At present, the HTTP handler of the client rejects submit calls with a HTTP
status code of 422, and the message "Could not parse body: invalid type: byte
array, expected u64" despite attempting to send the canister_id field as a
uint64 little endian typed array per the CBOR spec.
Since canister.js has no impact on invoking executables.
@paulyoung paulyoung changed the base branch from paulyoung/js-user-lib-args to master November 22, 2019 18:43
@paulyoung
Copy link
Contributor Author

Changing the base branch confused things here. Will open this again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants