Fix getLayoutVersion

This commit is contained in:
Nathaniel Parke 2020-09-18 13:04:31 +08:00
parent c9a71deaa6
commit ab7a078f92
2 changed files with 4 additions and 0 deletions

1
shell
View File

@ -8,3 +8,4 @@ const DEX_PROGRAM_ID = lib.DEX_PROGRAM_ID;
const decodeEventQueue = lib.decodeEventQueue;
const decodeRequestQueue = lib.decodeRequestQueue;
const TokenInstructions = lib.TokenInstructions;
const getLayoutVersion = lib.getLayoutVersion;

View File

@ -5,6 +5,9 @@ export function getLayoutVersion(programId: PublicKey) {
if (
programId.equals(
new PublicKey('4ckmDgGdxQoPDLUkDT3vHgSAkzA3QRdNq5ywwY4sUSJn'),
) ||
programId.equals(
new PublicKey('BJ3jrUzddfuSrZHXSCxMUUQsjKEyLmuuyZebkcaFp2fg'),
)
) {
return 1;