Skip to content

Commit

Permalink
Merge pull request #36 from MystenLabs/alex/enoki-breaking-change
Browse files Browse the repository at this point in the history
Fix pre-basecamp breaking change to enoki
  • Loading branch information
teohaik authored Apr 8, 2024
2 parents 7421872 + 3137ed7 commit 941dbd0
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 24 deletions.
2 changes: 1 addition & 1 deletion app/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ NEXT_PUBLIC_SUI_NETWORK=https://rpc.testnet.sui.io:443
NEXT_PUBLIC_PACKAGE_ADDRESS=0x8f4ba9c068cc90c1140d7310ca81b8db1f43ec38cfb252ec227ac307d8829c8d
NEXT_PUBLIC_ADMIN_ADDRESS=0x65391674eb4210940ea98ae451237d9335920297e7c8abaeb7e05b221ee36917
NEXT_PUBLIC_HOUSE_DATA_ID=0x5e905fd8dcc04cdae722bddfcf8d9ebc07be3fcbe3deb5ebb011dd5f3fba62d0
NEXT_PUBLIC_ENOKI_API_KEY=enoki_apikey_f8df562fe9368ada673cbd24a3045b0d
NEXT_PUBLIC_ENOKI_API_KEY=enoki_public_0ca87f8adcb98686bcaf5798735f1b00
NEXT_PUBLIC_GOOGLE_CLIENT_ID=354902366712-1r87r3a0klkch017ogef3j501dkn3s6m.apps.googleusercontent.com
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"@hookform/resolvers": "^3.3.1",
"@mysten/enoki": "^0.1.3",
"@mysten/enoki": "0.0.0-experimental-20240407101448",
"@mysten/sui.js": "^0.41.2",
"@noble/curves": "^1.3.0",
"@noble/hashes": "^1.3.3",
Expand Down
75 changes: 54 additions & 21 deletions app/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/src/components/home/SignInBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const SignInBanner = () => {
provider: "google",
clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,
redirectUrl,
network: "testnet",
extraParams: {
scope: ["openid", "email", "profile"],
},
Expand Down
2 changes: 1 addition & 1 deletion app/src/hooks/useCreateBlackjackGame.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useCreateBlackjackGame = () => {
],
});
console.log("Executing transaction...");
const signer = await enokiFlow.getKeypair();
const signer = await enokiFlow.getKeypair({network: "testnet"});
return suiClient.signAndExecuteTransactionBlock({
transactionBlock: tx,
signer: signer as any,
Expand Down

0 comments on commit 941dbd0

Please sign in to comment.