Skip to content

Commit

Permalink
chore(example): Create bucket with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rrr523 committed Dec 7, 2023
1 parent 177339f commit e69c328
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion examples/nextjs/src/components/bucket/create/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { client, selectSp } from '@/client';
import { ACCOUNT_PRIVATEKEY } from '@/config/env';
import { getOffchainAuthKeys } from '@/utils/offchainAuth';
import { useState } from 'react';
import { useAccount } from 'wagmi';
Expand Down Expand Up @@ -48,6 +47,20 @@ export const CreateBucket = () => {
primarySpAddress: spInfo.primarySpAddress,
},
paymentAddress: address,
// empty tags
tags: {
tags: [],
},

// with tags:
// tags: {
// tags: [
// {
// key: 'test',
// value: 'test',
// },
// ],
// },
},
{
// type: 'ECDSA',
Expand Down

0 comments on commit e69c328

Please sign in to comment.