Skip to content

Commit

Permalink
Add testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
kenrogers committed Oct 11, 2023
1 parent b135e15 commit 02ea7e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/app/components/BorrowForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { useState } from "react";
import { uintCV, PostConditionMode } from "@stacks/transactions";
import { openContractCall } from "@stacks/connect";
import { StacksMocknet } from "@stacks/network";
import { StacksMocknet, StacksTestnet } from "@stacks/network";

export default function BorrowForm() {
const [amount, setAmount] = useState(0);
Expand All @@ -22,6 +22,7 @@ export default function BorrowForm() {
contractName,
functionName,
functionArgs,
// network: new StacksTestnet(),
network: new StacksMocknet(),
postConditionMode: PostConditionMode.Allow,
appDetails: {
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/ConnectWallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function ConnectWallet({ userSession, userData, setUserData }) {
userSession,
network: StacksTestnet,
appDetails: {
name: "BitLoan",
name: "Lagoon",
icon: "https://freesvg.org/img/bitcoin.png",
},
onFinish: () => {
Expand Down
5 changes: 3 additions & 2 deletions src/app/components/LendForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import React, { useState } from "react";
import { uintCV, PostConditionMode } from "@stacks/transactions";
import { openContractCall } from "@stacks/connect";
import { StacksMocknet } from "@stacks/network";
import { StacksMocknet, StacksTestnet } from "@stacks/network";

export default function LendForm() {
const [amount, setAmount] = useState(0);
Expand All @@ -22,7 +22,8 @@ export default function LendForm() {
contractName,
functionName,
functionArgs,
network: new StacksMocknet(),
network: new StacksTestnet(),
// network: new StacksMocknet(),
postConditionMode: PostConditionMode.Allow,
appDetails: {
name: "Lagoon",
Expand Down

0 comments on commit 02ea7e5

Please sign in to comment.