Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ownership-provider): support payFee and signTransaction in sendTransaction #272

Merged
merged 12 commits into from
May 3, 2023
Merged
4 changes: 2 additions & 2 deletions examples/transfer-with-provider/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { createTransactionFromSkeleton, parseAddress, encodeToAddress, Transacti
import { predefined } from '@ckb-lumos/config-manager';
import { RPC, config } from '@ckb-lumos/lumos';
import { useAsyncState } from './hooks/useAsyncState';
import { blockchain } from '@ckb-lumos/base';
import { bytes } from '@ckb-lumos/codec';

config.initializeConfig(predefined.AGGRON4);

Expand Down Expand Up @@ -76,8 +78,6 @@ function Transfer() {

try {
txSkeleton = await provider.injectCapacity(txSkeleton, { amount: receiveShannon });
txSkeleton = await provider.payFee(txSkeleton, { autoInject: true });
txSkeleton = await provider.signTransaction(txSkeleton);

setLastTxHash('');
const txHash = await provider.sendTransaction(txSkeleton);
Expand Down
6 changes: 4 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading