From f803b2ae1f33268c78168ee9df6b690d1d56e771 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 25 Apr 2019 17:43:19 -0700 Subject: [PATCH] fix: adapt to program id changes --- web3.js/src/bpf-loader.js | 2 +- web3.js/src/budget-program.js | 2 +- web3.js/src/native-loader.js | 2 +- web3.js/src/token-program.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web3.js/src/bpf-loader.js b/web3.js/src/bpf-loader.js index be890cc7ac..fbfbad12ed 100644 --- a/web3.js/src/bpf-loader.js +++ b/web3.js/src/bpf-loader.js @@ -16,7 +16,7 @@ export class BpfLoader { */ static get programId(): PublicKey { return new PublicKey( - '0x8000000000000000000000000000000000000000000000000000000000000000', + 'BPFLoader1111111111111111111111111111111111', ); } diff --git a/web3.js/src/budget-program.js b/web3.js/src/budget-program.js index 1febf84ddf..401d180aba 100644 --- a/web3.js/src/budget-program.js +++ b/web3.js/src/budget-program.js @@ -144,7 +144,7 @@ export class BudgetProgram { */ static get programId(): PublicKey { return new PublicKey( - '0x8100000000000000000000000000000000000000000000000000000000000000', + 'Budget1111111111111111111111111111111111111', ); } diff --git a/web3.js/src/native-loader.js b/web3.js/src/native-loader.js index ac51e00a3f..0c37e5bb94 100644 --- a/web3.js/src/native-loader.js +++ b/web3.js/src/native-loader.js @@ -16,7 +16,7 @@ export class NativeLoader { */ static get programId(): PublicKey { return new PublicKey( - '0x100000000000000000000000000000000000000000000000000000000000000', + 'NativeLoader1111111111111111111111111111111', ); } diff --git a/web3.js/src/token-program.js b/web3.js/src/token-program.js index 434cbaf79a..4c4c2da9dc 100644 --- a/web3.js/src/token-program.js +++ b/web3.js/src/token-program.js @@ -138,7 +138,7 @@ type TokenAndPublicKey = [Token, PublicKey]; // This type exists to workaround a * The built-in token program */ export const SYSTEM_TOKEN_PROGRAM_ID = new PublicKey( - '0x8300000000000000000000000000000000000000000000000000000000000000', + 'Token11111111111111111111111111111111111111', ); /**