Skip to content

Commit

Permalink
fix: cannot sign transaction on non-6963 website (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
vvvvvv1vvvvvv authored Jan 14, 2025
1 parent 966131d commit 16617c5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/background/controller/provider/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ class ProviderController extends BaseController {
};

ethRequestAccounts = async ({ session: { origin } }) => {
console.log('ethRequestAccounts');
if (!permissionService.hasPermission(origin)) {
throw ethErrors.provider.unauthorized();
}
Expand Down
2 changes: 0 additions & 2 deletions src/background/controller/provider/rpcFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ const flowContext = flow
},
mapMethod,
} = ctx;
console.log(ctx);
if (!Reflect.getMetadata('SAFE', providerController, mapMethod)) {
if (!permissionService.hasPermission(origin)) {
if (connectOrigins.has(origin)) {
Expand All @@ -127,7 +126,6 @@ const flowContext = flow
{ height: 800 }
);
connectOrigins.delete(origin);
console.log('xxxxx');
permissionService.addConnectedSiteV2({
origin,
name,
Expand Down
2 changes: 1 addition & 1 deletion src/background/service/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class NotificationService extends Events {
: true,
createdBy: data?.params.$ctx?.ga ? 'rabby' : 'dapp',
source: data?.params.$ctx?.ga?.source || '',
trigger: data?.params.$ctx?.ga.trigger || '',
trigger: data?.params.$ctx?.ga?.trigger || '',
networkType: chain?.isTestnet
? 'Custom Network'
: 'Integrated Network',
Expand Down
1 change: 0 additions & 1 deletion src/ui/views/Approval/components/Connect/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ const Connect = (props: ConnectProps) => {
const {
params: { icon, origin, name, $ctx },
} = props;
console.log(props);
const { state } = useLocation<{
showChainsModal?: boolean;
}>();
Expand Down

0 comments on commit 16617c5

Please sign in to comment.