Skip to content

Commit

Permalink
build error
Browse files Browse the repository at this point in the history
  • Loading branch information
gin-lsl committed Nov 29, 2024
1 parent e2d4f85 commit 4b48df4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/web3/src/bitcoin/demos/get-inscriptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ const GetInscriptions: React.FC = () => {
<Space direction="vertical">
<Button
onClick={async () => {
if (!getInscriptions) {
message.info('getInscriptions not supported');
return;
}

try {
const res = await getInscriptions();
const { total, list } = res;
Expand Down
2 changes: 1 addition & 1 deletion packages/web3/src/bitcoin/demos/send-transfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const SendBitcoin: React.FC = () => {
onClick={async () => {
try {
// Don't send in main network!!
await sendTransfer({
await sendTransfer?.({
to: 'bc1pcdv3h6nuq705e3yk4pvdlqrcfchzvd9se9zwlhke3menvxlc58zshl0ryv',
sats: 10000,
});
Expand Down

0 comments on commit 4b48df4

Please sign in to comment.