Skip to content

Commit

Permalink
fix: safe sign
Browse files Browse the repository at this point in the history
  • Loading branch information
cs1707 committed Aug 16, 2024
1 parent bf9d098 commit 3da1325
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/background/controller/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1875,14 +1875,15 @@ export class WalletController extends BaseController {
) => {
const keyring: GnosisKeyring = this._getKeyringByType(KEYRING_CLASS.GNOSIS);
if (keyring) {
buildinProvider.currentProvider.currentAccount = account.address;
buildinProvider.currentProvider.currentAccountType = account.type;
buildinProvider.currentProvider.currentAccountBrand = account.brandName;
buildinProvider.currentProvider.chainId = networkId;
const currentProvider = new EthereumProvider();
currentProvider.currentAccount = account.address;
currentProvider.currentAccountType = account.type;
currentProvider.currentAccountBrand = account.brandName;
currentProvider.chainId = networkId;
await keyring.buildTransaction(
safeAddress,
tx,
new ethers.providers.Web3Provider(buildinProvider.currentProvider),
new ethers.providers.Web3Provider(currentProvider),
version,
networkId
);
Expand Down

0 comments on commit 3da1325

Please sign in to comment.