Skip to content

Commit

Permalink
demo-router: contract + task
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolaman committed Sep 26, 2024
1 parent cc0d315 commit 8b74996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/UniswapV2Router01.sol
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ contract UniswapV2Router01 is IUniswapV2Router01, NilCurrencyBase {
}

function smartCall(address dst, Nil.Token[] memory tokens, bytes memory callData) private returns (bool) {
if (Nil.getShardId(dst) == Nil.getShardId(address(dst))) {
if (Nil.getShardId(dst) == Nil.getShardId(address(this))) {
(bool success,) = Nil.syncCall(dst, gasleft(), 0, tokens, callData);
return success;
} else {
Expand Down

0 comments on commit 8b74996

Please sign in to comment.