Skip to content

Commit

Permalink
fix(ExpressProxyDeployer): fixing ExpressProxy constructor params (#22)
Browse files Browse the repository at this point in the history
fix(ExpressProxyDeployer): ExpressProxy constructor params
  • Loading branch information
re1ro authored Feb 15, 2023
1 parent 828dc37 commit d1ea278
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions contracts/express/ExpressExecutable.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ import { IERC20 } from '../interfaces/IERC20.sol';
import { IExpressExecutable } from '../interfaces/IExpressExecutable.sol';

abstract contract ExpressExecutable is IExpressExecutable {
error NotSelf();

IAxelarGateway public immutable gateway;

constructor(address gateway_) {
Expand Down
4 changes: 2 additions & 2 deletions contracts/express/ExpressProxyDeployer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ contract ExpressProxyDeployer is IExpressProxyDeployer {

gateway = gateway_;

ExpressProxy proxy = new ExpressProxy(address(this), address(this), '', gateway_);
ExpressProxy proxy = new ExpressProxy(address(1), address(1), '', gateway_);
proxy.deployRegistry(type(ExpressRegistry).creationCode);

proxyCodeHash = address(proxy).codehash;
Expand Down Expand Up @@ -52,7 +52,7 @@ contract ExpressProxyDeployer is IExpressProxyDeployer {
deploySalt,
abi.encodePacked(
type(ExpressProxy).creationCode,
abi.encode(gateway, implementationAddress, owner, setupParams)
abi.encode(implementationAddress, owner, setupParams, gateway)
)
);

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelar-network/axelar-gmp-sdk-solidity",
"version": "3.1.0",
"version": "3.1.1",
"description": "Solidity GMP SDK and utilities provided by Axelar for cross-chain development",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d1ea278

Please sign in to comment.