mirror of
https://github.com/RabbyHub/Rabby.git
synced 2026-05-10 03:00:26 -04:00
fix: conflict between session and speedup/cancel (#3145)
This commit is contained in:
@@ -511,11 +511,12 @@ class ProviderController extends BaseController {
|
||||
console.log(e);
|
||||
}
|
||||
}
|
||||
const chain = permissionService.isInternalOrigin(origin)
|
||||
? (findChain({
|
||||
id: approvalRes.chainId,
|
||||
})?.enum as CHAINS_ENUM)
|
||||
: permissionService.getConnectedSite(origin)!.chain;
|
||||
const chain =
|
||||
permissionService.isInternalOrigin(origin) || isSpeedUp || isCancel
|
||||
? (findChain({
|
||||
id: approvalRes.chainId,
|
||||
})?.enum as CHAINS_ENUM)
|
||||
: permissionService.getConnectedSite(origin)!.chain;
|
||||
|
||||
const approvingTx = transactionHistoryService.getSigningTx(signingTxId!);
|
||||
|
||||
|
||||
@@ -513,7 +513,13 @@ export const sendTransaction = async ({
|
||||
$ctx: {
|
||||
ga,
|
||||
},
|
||||
params: [transaction],
|
||||
params: [
|
||||
{
|
||||
...transaction,
|
||||
isSpeedUp: (tx as any)?.isSpeedUp,
|
||||
isCancel: (tx as any)?.isCancel,
|
||||
},
|
||||
],
|
||||
},
|
||||
session: session || INTERNAL_REQUEST_SESSION,
|
||||
approvalRes: {
|
||||
|
||||
@@ -414,7 +414,7 @@ export const MiniSignTx = ({
|
||||
task.init(
|
||||
txsResult.map((item) => {
|
||||
return {
|
||||
tx: item.tx,
|
||||
tx: { ...item.tx, isSpeedUp, isCancel },
|
||||
options: {
|
||||
chainServerId: chain.serverId,
|
||||
gasLevel: selectedGas || undefined,
|
||||
|
||||
Reference in New Issue
Block a user