Skip to content

Commit

Permalink
fix: createdBy typo
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Apr 30, 2024
1 parent b5f4750 commit 09ad092
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions src/background/controller/provider/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ class ProviderController extends BaseController {
preExecSuccess: cacheExplain
? cacheExplain.pre_exec.success && cacheExplain.calcSuccess
: true,
createBy: options?.data?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: options?.data?.$ctx?.ga ? 'rabby' : 'dapp',
source: options?.data?.$ctx?.ga?.source || '',
trigger: options?.data?.$ctx?.ga?.trigger || '',
networkType: chainItem?.isTestnet
Expand Down Expand Up @@ -574,7 +574,7 @@ class ProviderController extends BaseController {
preExecSuccess: cacheExplain
? cacheExplain.pre_exec.success && cacheExplain.calcSuccess
: true,
createBy: options?.data?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: options?.data?.$ctx?.ga ? 'rabby' : 'dapp',
source: options?.data?.$ctx?.ga?.source || '',
trigger: options?.data?.$ctx?.ga?.trigger || '',
networkType: chainItem?.isTestnet
Expand Down
4 changes: 2 additions & 2 deletions src/background/controller/provider/rpcFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ function reportStatsData() {
category: statsData?.category,
success: statsData?.signedSuccess,
preExecSuccess: statsData?.preExecSuccess,
createBy: statsData?.createBy,
createdBy: statsData?.createBy,
source: statsData?.source,
trigger: statsData?.trigger,
networkType: statsData?.networkType,
Expand All @@ -317,7 +317,7 @@ function reportStatsData() {
category: statsData?.category,
success: statsData?.submitSuccess,
preExecSuccess: statsData?.preExecSuccess,
createBy: statsData?.createBy,
createdBy: statsData?.createBy,
source: statsData?.source,
trigger: statsData?.trigger,
networkType: statsData?.networkType || '',
Expand Down
4 changes: 2 additions & 2 deletions src/background/service/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export type StatsData = {
chainId: string;
category: KEYRING_CATEGORY;
preExecSuccess: boolean;
createBy: string;
createdBy: string;
source: any;
trigger: any;
reported: boolean;
Expand Down Expand Up @@ -271,7 +271,7 @@ class NotificationService extends Events {
success: explain
? explain.calcSuccess && explain.pre_exec.success
: true,
createBy: data?.params.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: data?.params.$ctx?.ga ? 'rabby' : 'dapp',
source: data?.params.$ctx?.ga?.source || '',
trigger: data?.params.$ctx?.ga.trigger || '',
networkType: chain?.isTestnet
Expand Down
2 changes: 1 addition & 1 deletion src/background/service/transactionHistory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ class TxHistory {
preExecSuccess: target?.explain
? target.explain?.pre_exec.success && target.explain?.calcSuccess
: true,
createBy: target?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: target?.$ctx?.ga ? 'rabby' : 'dapp',
source: target?.$ctx?.ga?.source || '',
trigger: target?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Approval/components/CoinbaseWaiting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const CoinbaseWaiting = ({ params }: { params: ApprovalParams }) => {
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chainInfo?.isTestnet
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Approval/components/CommonWaiting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const CommonWaiting = ({ params }: { params: ApprovalParams }) => {
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Approval/components/ImKeyHardwareWaiting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const ImKeyHardwareWaiting = ({
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Approval/components/LedgerHardwareWaiting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const LedgerHardwareWaiting = ({ params }: { params: ApprovalParams }) => {
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet
Expand Down
2 changes: 1 addition & 1 deletion src/ui/views/Approval/components/PrivatekeyWaiting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const PrivatekeyWaiting = ({ params }: { params: ApprovalParams }) => {
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const QRHardWareWaiting = ({ params }) => {
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
signMethod,
Expand Down
4 changes: 2 additions & 2 deletions src/ui/views/Approval/components/SignTestnetTx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const SignTestnetTx = ({ params, origin }: SignTxProps) => {
type: currentAccount.brandName,
category: KEYRING_CATEGORY_MAP[currentAccount.type],
chainId: chain?.serverId || '',
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down Expand Up @@ -462,7 +462,7 @@ export const SignTestnetTx = ({ params, origin }: SignTxProps) => {
chainId: chain?.serverId || '',
category: KEYRING_CATEGORY_MAP[currentAccount.type],
preExecSuccess: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down
8 changes: 4 additions & 4 deletions src/ui/views/Approval/components/SignTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ const SignTx = ({ params, origin }: SignTxProps) => {
chainId: chain.serverId,
preExecSuccess:
checkErrors.length > 0 || !txDetail?.pre_exec.success ? false : true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down Expand Up @@ -1192,7 +1192,7 @@ const SignTx = ({ params, origin }: SignTxProps) => {
chainId: chain.serverId,
preExecSuccess:
checkErrors.length > 0 || !txDetail?.pre_exec.success ? false : true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down Expand Up @@ -1362,7 +1362,7 @@ const SignTx = ({ params, origin }: SignTxProps) => {
category: KEYRING_CATEGORY_MAP[currentAccount.type],
preExecSuccess:
checkErrors.length > 0 || !txDetail?.pre_exec.success ? false : true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down Expand Up @@ -1655,7 +1655,7 @@ const SignTx = ({ params, origin }: SignTxProps) => {
type: currentAccount.brandName,
category: KEYRING_CATEGORY_MAP[currentAccount.type],
chainId: chain.serverId,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet ? 'Custom Network' : 'Integrated Network',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ const WatchAddressWaiting = ({ params }: { params: ApprovalParams }) => {
// preExecSuccess: explain
// ? explain?.calcSuccess && explain?.pre_exec.success
// : true,
// createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
// createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
// source: params?.$ctx?.ga?.source || '',
// trigger: params?.$ctx?.ga?.trigger || '',
// });
Expand Down Expand Up @@ -187,7 +187,7 @@ const WatchAddressWaiting = ({ params }: { params: ApprovalParams }) => {
// preExecSuccess: explain
// ? explain?.calcSuccess && explain?.pre_exec.success
// : true,
// createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
// createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
// source: params?.$ctx?.ga?.source || '',
// trigger: params?.$ctx?.ga?.trigger || '',
// });
Expand Down Expand Up @@ -226,7 +226,7 @@ const WatchAddressWaiting = ({ params }: { params: ApprovalParams }) => {
preExecSuccess: explain
? explain?.calcSuccess && explain?.pre_exec.success
: true,
createBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
createdBy: params?.$ctx?.ga ? 'rabby' : 'dapp',
source: params?.$ctx?.ga?.source || '',
trigger: params?.$ctx?.ga?.trigger || '',
networkType: chainInfo?.isTestnet
Expand Down

0 comments on commit 09ad092

Please sign in to comment.