Skip to content

Commit

Permalink
chore: Update OnchainKit version to 0.29.5 (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcramer authored Aug 22, 2024
1 parent 80c414c commit f3b50a3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 12 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@coinbase/onchainkit": "^0.28.7",
"@coinbase/onchainkit": "^0.29.5",
"next": "^14.2.5",
"permissionless": "^0.1.26",
"react": "^18",
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function Page() {
</div>
</div>
{address ? (
<TransactionWrapper address={address} />
<TransactionWrapper />
) : (
<WalletWrapper
className="w-[450px] max-w-full"
Expand Down
2 changes: 1 addition & 1 deletion src/components/TransactionWrapper.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const renderWithProviders = (component: JSX.Element) => {

describe('TransactionWrapper', () => {
it('should renders', () => {
renderWithProviders(<TransactionWrapper address="0x" />);
renderWithProviders(<TransactionWrapper />);
const transaction = screen.getByText('Transact');
expect(transaction).toBeInTheDocument();
});
Expand Down
11 changes: 2 additions & 9 deletions src/components/TransactionWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,14 @@ import type {
TransactionError,
TransactionResponse,
} from '@coinbase/onchainkit/transaction';
import type { Address, ContractFunctionParameters } from 'viem';
import type { ContractFunctionParameters } from 'viem';
import {
BASE_SEPOLIA_CHAIN_ID,
clickContractABI,
clickContractAddress,
} from '../constants';

type TransactionWrapperParams = {
address: Address;
};

export default function TransactionWrapper({
address,
}: TransactionWrapperParams) {
export default function TransactionWrapper() {
const contracts = [
{
address: clickContractAddress,
Expand All @@ -44,7 +38,6 @@ export default function TransactionWrapper({
return (
<div className="flex w-[450px]">
<Transaction
address={address}
contracts={contracts}
className="w-[450px]"
chainId={BASE_SEPOLIA_CHAIN_ID}
Expand Down

0 comments on commit f3b50a3

Please sign in to comment.