We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecb0e17 commit b34ec4eCopy full SHA for b34ec4e
governance/xc_admin/packages/xc_admin_common/src/propose.ts
@@ -64,6 +64,9 @@ export async function proposeInstructions(
64
}
65
66
const batches = batchIntoExecutorPayload(instructions);
67
+ if (255 <= batches.length) {
68
+ throw new Error("A proposal can only support 255 instructions");
69
+ }
70
for (const [i, batch] of batches.entries()) {
71
const squadIx = await wrapAsRemoteInstruction(
72
squad,
@@ -86,6 +89,9 @@ export async function proposeInstructions(
86
89
);
87
90
88
91
} else {
92
+ if (255 <= instructions.length) {
93
94
95
for (let i = 0; i < instructions.length; i++) {
96
ixToSend.push(
97
await squad.buildAddInstruction(
0 commit comments