Skip to content

Commit

Permalink
Revert "update provider"
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev authored Oct 4, 2023
1 parent 7767a24 commit 854a043
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 32 deletions.
60 changes: 30 additions & 30 deletions ui/src/app/components/ArcadeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,17 @@ export const ArcadeDialog = () => {
<div className="flex justify-center mb-1">
{((connector?.options as any)?.id == "argentX" ||
(connector?.options as any)?.id == "braavos") && (
<div>
<p className="my-2 text-sm sm:text-base text-terminal-yellow p-2 border border-terminal-yellow">
Note: This will initiate a transfer of 0.001 ETH from your
connected wallet to the arcade account to cover your transaction
costs from normal gameplay.
</p>
<Button onClick={() => create()} disabled={isWrongNetwork}>
create arcade account
</Button>
</div>
)}
<div>
<p className="my-2 text-sm sm:text-base text-terminal-yellow p-2 border border-terminal-yellow">
Note: This will initiate a transfer of 0.001 ETH from your
connected wallet to the arcade account to cover your transaction
costs from normal gameplay.
</p>
<Button onClick={() => create()} disabled={isWrongNetwork}>
create arcade account
</Button>
</div>
)}
</div>
<div className="grid grid-cols-2 md:grid-cols-4 gap-4 overflow-hidden my-6">
{arcadeConnectors().map((account, index) => {
Expand Down Expand Up @@ -154,8 +154,8 @@ export const ArcadeDialog = () => {
{isSettingPermissions
? "Setting Permissions"
: isGeneratingNewKey
? "Generating New Key"
: "Deploying Account"}
? "Generating New Key"
: "Deploying Account"}
</h3>
</div>
)}
Expand Down Expand Up @@ -242,23 +242,23 @@ export const ArcadeAccountCard = ({
{!arcadeConnectors.some(
(conn) => conn.options.options.id == walletAccount.address
) && (
<Button
variant={"ghost"}
onClick={() => {
topUp(account.name, walletAccount);
getBalance(account.name);
}}
disabled={isToppingUp}
>
{isToppingUp ? (
<span className="loading-ellipsis">Topping Up</span>
) : (
<span className="flex flex-col">
<span>Top Up</span> <span>(0.001Eth)</span>
</span>
)}
</Button>
)}
<Button
variant={"ghost"}
onClick={() => {
topUp(account.name, walletAccount);
getBalance(account.name);
}}
disabled={isToppingUp}
>
{isToppingUp ? (
<span className="loading-ellipsis">Topping Up</span>
) : (
<span className="flex flex-col">
<span>Top Up</span> <span>(0.001Eth)</span>
</span>
)}
</Button>
)}
</div>
<div className="flex flex-row">
{masterAccountAddress == walletAccount.address && (
Expand Down
7 changes: 5 additions & 2 deletions ui/src/app/lib/burner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ import { useAccount, useConnectors } from "@starknet-react/core";
import { ArcadeConnector } from "./arcade";
import { useContracts } from "../hooks/useContracts";
import { BurnerStorage } from "../types";
import { mainnet_addr } from "./constants";

export const PREFUND_AMOUNT = "0x38D7EA4C68000"; // 0.001ETH

const provider = new Provider({ rpc: { nodeUrl: mainnet_addr }, sequencer: { baseUrl: mainnet_addr } });
const provider = new Provider({
sequencer: {
baseUrl: "https://alpha4.starknet.io",
},
});

export const useBurner = () => {
const { refresh } = useConnectors();
Expand Down

0 comments on commit 854a043

Please sign in to comment.