Skip to content

[ZK Stack] - dapp-portal L2 transactions broken after merging latest #895

Discussion options

You must be logged in to vote

Need to make the following changes 👇

In composables/zksync/useTransaction.ts:

- const tx = getProvider()._wrapTransaction(txResponse);
- transactionHash.value = tx.hash;
- return tx;

+ transactionHash.value = txResponse.hash;
+ return txResponse;

And then in store/zksync/wallet.ts:

- import { L1Signer, L1VoidSigner, BrowserProvider } from "zksync-ethers";
+ import { L1Signer, L1VoidSigner, BrowserProvider, Signer } from "zksync-ethers";

....

- const eraL2Signer = web3Provider.getSigner();
+ const rawEthersSigner = await web3Provider.getSigner();
+ const eraL2Signer = Signer.from(rawEthersSigner, Number(eraNetwork.value.id), providerStore.requestProvider());

Afterwards, success ✅ 👇

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@dutterbutter
Comment options

@dutterbutter
Comment options

Answer selected by coffeexcoin
@dutterbutter
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ZK Stack
Labels
zk-stack ZK Stack Question
2 participants