Skip to content

Commit

Permalink
fix: stringify PublicKey before passing to Anchor
Browse files Browse the repository at this point in the history
Temp fix before coral-xyz/anchor#1138 is
merged to master
  • Loading branch information
macalinao committed Dec 15, 2021
1 parent ab2cb64 commit 66c70ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/anchor-contrib/src/utils/programs.ts
Expand Up @@ -21,7 +21,7 @@ export const newProgram = <P>(
) => {
return new Program(
idl,
address,
address.toString(),
makeAnchorProvider(provider)
) as unknown as P;
};
Expand Down

0 comments on commit 66c70ba

Please sign in to comment.