Skip to content

Commit 274276e

Browse files
committed
fix-channels
1 parent 5244d31 commit 274276e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/plugin-ckb-fiber/src/actions/openChannel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { z } from "zod";
1616
const schema = z.object({
1717
peerId: z.string(),
1818
fundingAmount: z.number(),
19-
tokenType: z.string(),
19+
tokenType: z.string().optional(),
2020
});
2121

2222
type Content = {

packages/plugin-ckb-fiber/src/ckb/fiber/rpcClient.ts

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ export class RpcClient {
146146
}
147147

148148
async shutdownChannel(params: ShutdownChannelParams): Promise<void> {
149+
params.fee_rate ||= 1020;
149150
params = convert(params, ShutdownChannelParamsNumberKeys, true);
150151
await this.call<void>('shutdown_channel', [params]);
151152
}

0 commit comments

Comments
 (0)