feat: expose instruction types and refactor

This commit is contained in:
Justin Starry
2020-02-28 18:43:10 +08:00
committed by Michael Vines
parent 8b95f41c51
commit 0cdf532419
7 changed files with 305 additions and 165 deletions

View File

@@ -249,7 +249,7 @@ test('non-SystemInstruction error', () => {
data: Buffer.from([2, 0, 0, 0]),
};
expect(() => {
new SystemInstruction(badProgramId);
new SystemInstruction(badProgramId, 'Create');
}).toThrow();
const amount = 123;