@codama/renderers-rust 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -150,9 +150,9 @@ impl<'a, 'b> {{ instruction.name | pascalCase }}Cpi<'a, 'b> {
|
|
|
150
150
|
is_writable: remaining_account.2,
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
|
-
let {{ 'mut ' if hasArgs }}data = {{ instruction.name | pascalCase }}InstructionData::new()
|
|
153
|
+
let {{ 'mut ' if hasArgs }}data = borsh::to_vec(&{{ instruction.name | pascalCase }}InstructionData::new()).unwrap();
|
|
154
154
|
{% if hasArgs %}
|
|
155
|
-
let mut args = self.__args
|
|
155
|
+
let mut args = borsh::to_vec(&self.__args).unwrap();
|
|
156
156
|
data.append(&mut args);
|
|
157
157
|
{% endif %}
|
|
158
158
|
|
|
@@ -94,9 +94,9 @@ impl {{ instruction.name | pascalCase }} {
|
|
|
94
94
|
{% endif %}
|
|
95
95
|
{% endfor %}
|
|
96
96
|
accounts.extend_from_slice(remaining_accounts);
|
|
97
|
-
let {{ 'mut ' if hasArgs }}data = {{ instruction.name | pascalCase }}InstructionData::new()
|
|
97
|
+
let {{ 'mut ' if hasArgs }}data = borsh::to_vec(&{{ instruction.name | pascalCase }}InstructionData::new()).unwrap();
|
|
98
98
|
{% if hasArgs %}
|
|
99
|
-
let mut args = args
|
|
99
|
+
let mut args = borsh::to_vec(&args).unwrap();
|
|
100
100
|
data.append(&mut args);
|
|
101
101
|
{% endif %}
|
|
102
102
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codama/renderers-rust",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "Renders Rust clients for your programs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@solana/codecs-strings": "rc",
|
|
32
32
|
"nunjucks": "^3.2.4",
|
|
33
|
-
"@codama/errors": "1.2.
|
|
34
|
-
"@codama/nodes": "1.2.
|
|
35
|
-
"@codama/renderers-core": "1.0.
|
|
36
|
-
"@codama/visitors-core": "1.2.
|
|
33
|
+
"@codama/errors": "1.2.5",
|
|
34
|
+
"@codama/nodes": "1.2.5",
|
|
35
|
+
"@codama/renderers-core": "1.0.7",
|
|
36
|
+
"@codama/visitors-core": "1.2.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/nunjucks": "^3.2.6",
|
|
40
|
-
"@codama/nodes-from-anchor": "1.1.
|
|
40
|
+
"@codama/nodes-from-anchor": "1.1.5"
|
|
41
41
|
},
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"repository": {
|