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 5a54101 commit 24e57d3Copy full SHA for 24e57d3
server/services/clientSolana.ts
@@ -354,10 +354,8 @@ export async function executeSolanaProgram({
354
}
355
const args = instructionArgs.map(({ name, type }) =>
356
type === 'number'
357
- ? new BN(
358
- (report[name as keyof typeof report] ?? 0).toString().slice(0, 4)
359
- )
360
- : (report[name as keyof typeof report] ?? '').toString().slice(0, 4)
+ ? new BN((report[name as keyof typeof report] ?? 0).toString())
+ : (report[name as keyof typeof report] ?? '').toString()
361
);
362
const tx = await method(...args)
363
.accounts({
0 commit comments