Skip to content

Commit

Permalink
fix: compare pubkey values not references
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Aug 20, 2024
1 parent 4124b49 commit cd6f2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/programs/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit cd6f2f0

Please sign in to comment.