Skip to content

Commit

Permalink
(fix) let -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
rrw-zilliqa committed Aug 28, 2024
1 parent 38efab7 commit 544805d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/execution/address/ScillaInitParams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ScillaInitParamRow: FC<ScillaInitParamRowProps> = ({

export const ScillaInitParams: FC<ScillaInitParamsProps> = ({ address }) => {
const { zilliqa } = useContext(RuntimeContext);
let { data, isLoading } = useSmartContractInit(zilliqa, address);
const { data, isLoading } = useSmartContractInit(zilliqa, address);
if (isLoading) {
return (
<div className="mt-6">
Expand Down
4 changes: 2 additions & 2 deletions src/execution/address/ScillaState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ export const ScillaState: FC<ScillaStateProps> = ({
setLoadContractState,
}) => {
const { zilliqa } = useContext(RuntimeContext);
let [contractState, setContractState] = useState<ContractState | null>(null);
const [contractState, setContractState] = useState<ContractState | null>(null);

let { data, isLoading } = useSmartContractState(
const { data, isLoading } = useSmartContractState(
loadContractState ? zilliqa : undefined,
address,
);
Expand Down

0 comments on commit 544805d

Please sign in to comment.