forked from solana-labs/governance-ui
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from UXDProtocol/fix/anchor-publickey
fix @project-serum/anchor publickey issue
- Loading branch information
Showing
4 changed files
with
152 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/node_modules/@project-serum/anchor/dist/esm/program/common.js b/node_modules/@project-serum/anchor/dist/esm/program/common.js | ||
index 164d8ff..bab8614 100644 | ||
--- a/node_modules/@project-serum/anchor/dist/esm/program/common.js | ||
+++ b/node_modules/@project-serum/anchor/dist/esm/program/common.js | ||
@@ -38,15 +38,6 @@ export function validateAccounts(ixAccounts, accounts = {}) { | ||
} | ||
// Translates an address to a Pubkey. | ||
export function translateAddress(address) { | ||
- if (typeof address === "string") { | ||
- const pk = new PublicKey(address); | ||
- return pk; | ||
- } | ||
- else if (address.constructor.prototype.constructor.name === "PublicKey") { | ||
- return address; | ||
- } | ||
- else { | ||
- throw new Error("Given address is not a PublicKey nor a string."); | ||
- } | ||
+ return new PublicKey(address); | ||
} | ||
//# sourceMappingURL=common.js.map | ||
\ No newline at end of file |
Oops, something went wrong.
6367487
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deployment failed with the following error:
6367487
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
governance-ui – ./
governance-ui-one.vercel.app
governance.uxd.fi
governance-ui-git-main-uxdprotocol.vercel.app
governance-ui-uxdprotocol.vercel.app