Skip to content

Commit

Permalink
fix: merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiorigam committed Dec 17, 2024
2 parents 5cbc56d + 48a95d2 commit 1a7a842
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/dapp-kit-react/src/DAppKitProvider/hooks/useConnex.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { useContext } from 'react';
import { type DAppKitContext } from '../../types';
import { Context } from '../context';

/**
* Hook to get the connex object from the DAppKitProvider
*/
export const useConnex = (): DAppKitContext['connex'] => {
const context = useContext(Context);

if (!context) {
throw new Error('"useConnex" must be used within a ConnexProvider');
}

return context.connex;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* The VNS resolver addresses
*/
export const VNS_RESOLVER = {
main: '0xA11413086e163e41901bb81fdc5617c975Fa5a1A',
test: '0xc403b8EA53F707d7d4de095f0A20bC491Cf2bc94',
};

0 comments on commit 1a7a842

Please sign in to comment.