diff --git a/src/programs/system.ts b/src/programs/system.ts index 32b21bbe0c2..2c1f7f4f0e3 100644 --- a/src/programs/system.ts +++ b/src/programs/system.ts @@ -860,7 +860,7 @@ export class SystemProgram { {pubkey: params.fromPubkey, isSigner: true, isWritable: true}, {pubkey: params.newAccountPubkey, isSigner: false, isWritable: true}, ]; - if (params.basePubkey != params.fromPubkey) { + if (!params.basePubkey.equals(params.fromPubkey)) { keys.push({ pubkey: params.basePubkey, isSigner: true,