Skip to content

Commit

Permalink
fix: Fix sending sudt to a new acp cell with extra 142 CKB by offline…
Browse files Browse the repository at this point in the history
… sign (#3055)

Co-authored-by: Chen Yu <keithwhisper@gmail.com>
  • Loading branch information
yanguoyu and Keith-CY authored Apr 8, 2024
1 parent acfe4b0 commit 4d1b3bb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/neuron-ui/src/components/HardwareSign/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ export default ({
switch (offlineSignJSON?.type) {
case OfflineSignType.CreateSUDTAccount:
return 'create-sudt-account'
case OfflineSignType.SendAcpSUDTToNewCell:
return 'send-acp-sudt-to-new-cell'
case OfflineSignType.SendSUDT:
return 'send-sudt'
case OfflineSignType.UnlockDAO:
Expand Down
3 changes: 2 additions & 1 deletion packages/neuron-ui/src/components/PasswordRequest/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ export default ({
switch (actionType) {
case 'create-sudt-account':
return OfflineSignType.CreateSUDTAccount
case 'send-acp-sudt-to-new-cell':
return OfflineSignType.SendAcpSUDTToNewCell
case 'send-ckb-asset':
case 'send-acp-ckb-to-new-cell':
case 'send-acp-sudt-to-new-cell':
case 'transfer-to-sudt':
case 'send-sudt':
return OfflineSignType.SendSUDT
Expand Down
1 change: 1 addition & 0 deletions packages/neuron-ui/src/services/remote/offline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export enum OfflineSignType {
UnlockDAO = 'UnlockDAO',
CreateSUDTAccount = 'CreateSUDTAccount',
SendSUDT = 'SendSUDT',
SendAcpSUDTToNewCell = 'SendAcpSUDTToNewCell',
SendFromMultisigOnlySig = 'SendFromMultisigOnlySig',
Invalid = 'Invalid',
}
Expand Down

2 comments on commit 4d1b3bb

@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 8593707419

@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 8593708795

Please sign in to comment.