Skip to content

Commit

Permalink
set context.sender
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 11, 2024
1 parent 0459273 commit 0b47bea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/localnet/src/handleOnEVMCalled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export const handleOnEVMCalled = async ({
try {
(deployer as NonceManager).reset();
const context = {
origin: sender,
sender: await fungibleModuleSigner.getAddress(),
origin: ethers.ZeroAddress,
sender,
chainID,
};
const zrc20 = foreignCoins.find(
Expand Down
4 changes: 2 additions & 2 deletions packages/localnet/src/handleOnEVMDeposited.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export const handleOnEVMDeposited = async ({
const zrc20 = foreignCoin.zrc20_contract_address;
try {
const context = {
origin: protocolContracts.gatewayZEVM.target,
sender: await fungibleModuleSigner.getAddress(),
origin: ethers.ZeroAddress,
sender,
chainID: chainID,
};

Expand Down
4 changes: 2 additions & 2 deletions packages/localnet/src/handleOnEVMDepositedAndCalled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export const handleOnEVMDepositedAndCalled = async ({
try {
const context = {
origin: ethers.ZeroAddress,
sender: sender,
chainID: chainID,
sender,
chainID,
};

log(
Expand Down

0 comments on commit 0b47bea

Please sign in to comment.