Skip to content

Commit

Permalink
cleanup console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
arjanjohan committed Jul 9, 2024
1 parent b28ccdd commit a4a0439
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 13 deletions.
4 changes: 0 additions & 4 deletions packages/nextjs/app/bio/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ const OnchainBio: NextPage = () => {
const [currentBio, setCurrentBio] = useState(null);

const {data, isLoading, error} = useGetAccountModules(ONCHAIN_BIO.address);
console.log("useGetAccountModules", data, "isLoading", isLoading, "error", error);


const {submitTransaction, transactionResponse, transactionInProcess} =
useSubmitTransaction();

const fetchBio = async () => {
if (!account) {
console.log("No account");
return [];
}
try {
Expand All @@ -44,13 +42,11 @@ const OnchainBio: NextPage = () => {
});
setAccountHasBio(true);
if (bioResource) {
console.log("Name:", bioResource.name, "Bio:", bioResource.bio);
setCurrentName(bioResource.name);
setCurrentBio(bioResource.bio);
} else {
setCurrentName(null);
setCurrentBio(null);
console.log("no bio");
}
} catch (e: any) {
setAccountHasBio(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,6 @@ export const FunctionForm = ({

const handleView = async () => {
let viewRequest: Types.ViewRequest;
console.log("viewRequest AVH", state.network_value, data.ledgerVersion);

try {
viewRequest = {
Expand All @@ -132,7 +131,6 @@ export const FunctionForm = ({
}
setViewInProcess(true);
try {
console.log("viewRequest", viewRequest, state.network_value, data.ledgerVersion);
const result = await view(viewRequest, state.network_value, data.ledgerVersion);
setResult(result);
console.log("function_interacted", fn.name, { txn_status: "success" });
Expand All @@ -143,7 +141,7 @@ export const FunctionForm = ({
error = error.substring(prefix.length).trim();
}
setResult(undefined);
console.log("AVH function_interacted", fn.name, { txn_status: "failed" });
console.log("function_interacted", fn.name, { txn_status: "failed" });
}
setViewInProcess(false);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ export const ModuleResource = ({
collapsedByDefault
}: ModuleResourceProps) => {

console.log("resource", resource);

return (
<>
<div>{resource.type}</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const useDeployedContractInfo = <TContractName extends ContractName>(cont
const isMounted = useIsMounted();
const targetNetwork = "devnet";
const deployedContract = contracts?.[targetNetwork]?.[contractName.toString()] as Contract<TContractName>;
console.log("deployedContract", deployedContract);
const [status, setStatus] = useState<ContractCodeStatus>(ContractCodeStatus.LOADING);
// const publicClient = usePublicClient({ chainId: targetNetwork.id });

Expand Down
2 changes: 0 additions & 2 deletions packages/nextjs/hooks/scaffold-move/useSubmitTransaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ const useSubmitTransaction = () => {


setTransactionInProcess(true);
console.log("submitting transaction", transaction);
const signAndSubmitTransactionCall = async (
transaction: InputTransactionData,
): Promise<TransactionResponse> => {
Expand All @@ -64,7 +63,6 @@ const useSubmitTransaction = () => {
let response;
try {
response = await signAndSubmitTransaction(transaction);
console.log("response", response);

// transaction submit succeed
if ("hash" in response) {
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/scaffold.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Chain, defaultChains} from "../nextjs/utils/scaffold-move/chains";
import {Chain, defaultChains} from "./utils/scaffold-move/chains";


export type ScaffoldConfig = {
Expand Down

0 comments on commit a4a0439

Please sign in to comment.