Skip to content

Commit

Permalink
fix: compare pubkey values not references (#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec authored Aug 20, 2024
1 parent 4124b49 commit 99aa3c8
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 99aa3c8

Please sign in to comment.