Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devchenyan committed Jan 14, 2024
1 parent d8416fd commit 7030d9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/services/remote/offline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export type SignedTransaction = OfflineSignJSON & { status: OfflineSignStatus.Si

export const exportTransactionAsJSON = remoteApi<OfflineSignJSON, void>('export-transaction-as-json')
export const signTransactionOnly = remoteApi<OfflineSignJSON, void>('sign-transaction-only')
export const broadcastTransaction = remoteApi<BroadcastProps, void>('broadcast-transaction')
export const broadcastTransaction = remoteApi<BroadcastProps, void>('broadcast-transaction-only')
export const broadcastSignedTransaction = remoteApi<SignedTransaction, string>('broadcast-signed-transaction')
export const signAndExportTransaction = remoteApi<SignProps, { filePath: string; json: OfflineSignJSON }>(
'sign-and-export-transaction'
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/services/remote/remoteApiWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ type Action =
// offline-signature
| 'export-transaction-as-json'
| 'sign-transaction-only'
| 'broadcast-transaction'
| 'broadcast-transaction-only'
| 'broadcast-signed-transaction'
| 'sign-and-export-transaction'
| 'sign-and-broadcast-transaction'
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/controllers/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ export default class ApiController {
return this.#offlineSignController.signTransaction(params)
})

handle('broadcast-transaction', async (_, params) => {
handle('broadcast-transaction-only', async (_, params) => {
return this.#offlineSignController.broadcastTransaction(params)
})

Expand Down

1 comment on commit 7030d9d

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 7516756930

Please sign in to comment.