-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # Cargo.lock # clients/js/dist/src/index.js.map # clients/js/dist/src/index.mjs.map # package.json # pnpm-lock.yaml # Conflicts: # Cargo.lock # Cargo.toml # clients/rust/src/generated/instructions/create_activated_device.rs
- Loading branch information
Showing
11 changed files
with
723 additions
and
1,105 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,10 @@ | |
"typescript": "^5.5.2", | ||
"zx": "^7.2.3" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"pnpm": { | ||
"patchedDependencies": { | ||
"@kinobi-so/[email protected]": "patches/@[email protected]" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
diff --git a/dist/templates/instructionsCpiPage.njk b/dist/templates/instructionsCpiPage.njk | ||
index b955b9acdec9fe52b2c10ba2b9abb1ad2401cff5..054b449a1e8d94cdb522c397305893c2e5241afe 100644 | ||
--- a/dist/templates/instructionsCpiPage.njk | ||
+++ b/dist/templates/instructionsCpiPage.njk | ||
@@ -150,9 +150,9 @@ impl<'a, 'b> {{ instruction.name | pascalCase }}Cpi<'a, 'b> { | ||
is_writable: remaining_account.2, | ||
}) | ||
}); | ||
- let {{ 'mut ' if hasArgs }}data = {{ instruction.name | pascalCase }}InstructionData::new().try_to_vec().unwrap(); | ||
+ let {{ 'mut ' if hasArgs }}data = borsh::to_vec(&{{ instruction.name | pascalCase }}InstructionData::new()).unwrap(); | ||
{% if hasArgs %} | ||
- let mut args = self.__args.try_to_vec().unwrap(); | ||
+ let mut args = borsh::to_vec(&self.__args).unwrap(); | ||
data.append(&mut args); | ||
{% endif %} | ||
|
||
diff --git a/dist/templates/instructionsPage.njk b/dist/templates/instructionsPage.njk | ||
index b58249d4a96464117234aab646ba7fe9f5114b1a..f5df940c05d7ea46440a3bb64c08909c2f016a14 100644 | ||
--- a/dist/templates/instructionsPage.njk | ||
+++ b/dist/templates/instructionsPage.njk | ||
@@ -93,9 +93,9 @@ impl {{ instruction.name | pascalCase }} { | ||
{% endif %} | ||
{% endfor %} | ||
accounts.extend_from_slice(remaining_accounts); | ||
- let {{ 'mut ' if hasArgs }}data = {{ instruction.name | pascalCase }}InstructionData::new().try_to_vec().unwrap(); | ||
+ let {{ 'mut ' if hasArgs }}data = borsh::to_vec(&{{ instruction.name | pascalCase }}InstructionData::new()).unwrap(); | ||
{% if hasArgs %} | ||
- let mut args = args.try_to_vec().unwrap(); | ||
+ let mut args = borsh::to_vec(&args).unwrap(); | ||
data.append(&mut args); | ||
{% endif %} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters