Skip to content

Commit

Permalink
Fix candid header in epic (#3)
Browse files Browse the repository at this point in the history
* decode input message in candid

* fix

* fix candid header in epic

Co-authored-by: Yan Chen <[email protected]>
  • Loading branch information
chenyan2002 and chenyan-dfinity authored Sep 3, 2021
1 parent b0536a3 commit 08f79b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion epic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ void go() {
leb128(); // Arg count. Expect 1.
byte(); // Expect type #0, a record.
char hdr[] = "DIDL\x03\x6c\x03\xa2\xf5\xed\x88\x04\x01\xc6\xa4\xa1\x98\x06\x02\x9a\xa1\xb2\xf9\x0c\x7a\x6d\x7b\x6d\x7f\x01\x00";
char hdr[] = "DIDL\x04\x6c\x03\xa2\xf5\xed\x88\x04\x01\xc6\xa4\xa1\x98\x06\x02\x9a\xa1\xb2\xf9\x0c\x7a\x6d\x7b\x6d\x03\x6c\x02\x00\x71\x01\x71\x01\x00";
char ftr[] = "\x00\xc8\x00";
char not_found[] = "\x03" "404\x00\x94\x01";
reply_data_append(hdr, sizeof(hdr) - 1);
Expand Down

0 comments on commit 08f79b4

Please sign in to comment.