Skip to content

Commit

Permalink
WIP: remove and stash before rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeaster committed May 3, 2023
1 parent 9383043 commit 64bcb92
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useMedusa.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ export default function useMedusa() {
Medusa<SecretKey, PublicKey<SecretKey>>
> => {
if (!signer) return

const medusa = await Medusa.init(
CHAIN_CONFIG[chain?.id]?.oracleContractAddress,
signer,
'localhost',
)
await medusa.signForKeypair()
updateMedusa(medusa)
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useSwitchChain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default function useSwitchChain() {
await medusa.signer.getAddress(),
getProvider({ chainId }),
),
'localhost',
)
newMedusa.setKeypair(medusa.keypair)
updateMedusa(newMedusa)
Expand Down

0 comments on commit 64bcb92

Please sign in to comment.