Skip to content

Commit

Permalink
fix: AtomicToolkit initialize options
Browse files Browse the repository at this point in the history
  • Loading branch information
Envoy-VC committed Dec 19, 2023
1 parent 341a644 commit cce93f2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/demo/src/components/common/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,15 @@ import { useConnection } from 'arweave-wallet-kit';

// Icons
import AtomicToolkitLogo from '~/assets/light.svg';
import { WarpFactory } from 'warp-contracts';
import { DeployPlugin } from 'warp-contracts-plugin-deploy';

const Navbar = () => {
const { setAtomicToolkit } = useAtomicToolkit();
const { connected } = useConnection();

React.useEffect(() => {
const get = () => {
const warp = WarpFactory.forMainnet();

console.log(warp);
warp.use(new DeployPlugin());
const toolkit = new AtomicToolkitWeb({
warp,
environment: 'mainnet',
useIrys: false,
});
setAtomicToolkit(toolkit);
Expand Down

0 comments on commit cce93f2

Please sign in to comment.