Skip to content

Commit

Permalink
type assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
MattWong-ca committed Nov 25, 2024
1 parent e4cb367 commit a1c2526
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export const AddressComponent = ({
<div className="bg-base-100 border-base-300 border shadow-md shadow-secondary rounded-3xl px-6 lg:px-8 mb-6 space-y-1 py-4 overflow-x-auto">
<div className="flex">
<div className="flex flex-col gap-1">
<Address address={address} format="long" onlyEnsOrAddress />
<Address address={address as `0x${string}`} format="long" onlyEnsOrAddress />
<div className="flex gap-1 items-center">
<span className="font-bold text-sm">Balance:</span>
<Balance address={address} className="text" />
<Balance address={address as `0x${string}`} className="text" />
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const ContractTabs = ({ address, contractData }: PageProps) => {

useEffect(() => {
const checkIsContract = async () => {
const contractCode = await publicClient.getBytecode({ address: address });
const contractCode = await publicClient.getBytecode({ address: address as `0x${string}` });
setIsContract(contractCode !== undefined && contractCode !== "0x");
};

Expand Down Expand Up @@ -85,8 +85,8 @@ export const ContractTabs = ({ address, contractData }: PageProps) => {
{activeTab === "code" && contractData && (
<AddressCodeTab bytecode={contractData.bytecode} assembly={contractData.assembly} />
)}
{activeTab === "storage" && <AddressStorageTab address={address} />}
{activeTab === "logs" && <AddressLogsTab address={address} />}
{activeTab === "storage" && <AddressStorageTab address={address as `0x${string}`} />}
{activeTab === "logs" && <AddressLogsTab address={address as `0x${string}`} />}
</>
);
};
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/BlueBox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function BlueBox(props) {
export default function BlueBox(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function Logo(props) {
export default function Logo(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/LogoLandscape.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function LogoLandscape(props) {
export default function LogoLandscape(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/LogoWithText.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function LogoWithText(props) {
export default function LogoWithText(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/RedArrow.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function RedArrow(props) {
export default function RedArrow(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/RedPopBox.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function RedPopBox(props) {
export default function RedPopBox(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/assets/YellowCircle.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function YellowCircle(props) {
export default function YellowCircle(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/svg/Logo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function Logo(props) {
export default function Logo(props: any) {
return (
<svg
{...props}
Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/components/svg/LogoLandscape.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function LogoLandscape(props) {
export default function LogoLandscape(props: any) {
return (
<svg
{...props}
Expand Down

0 comments on commit a1c2526

Please sign in to comment.