Skip to content

Commit

Permalink
decimals implementation: return TypedVal instead of literal
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaKt committed Nov 5, 2024
1 parent 08d98cd commit abb6474
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion test/demo-contracts/UniswapV2SwapRenamed.DAI.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ contract dAIMock {
event transferEvent(address indexed src, address indexed dst, uint wad);

function decimals() external returns (uint8) {
return 18;
uint8 dec = 18;
return dec;
}

function mint(address usr, uint wad) public {
Expand Down
3 changes: 2 additions & 1 deletion test/demo-contracts/UniswapV2SwapRenamed.USDC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ contract uSDCMock {
event approvalEvent(address indexed owner, address indexed spender, uint256 value);

function decimals() external returns (uint8) {
return 18;
uint8 dec = 18;
return dec;
}

function mint(address account, uint256 value) public {
Expand Down
3 changes: 2 additions & 1 deletion test/demo-contracts/UniswapV2SwapRenamed.WETH.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ contract wETHMock {
event transferEvent(address indexed from, address indexed to, uint256 value);

function decimals() external returns (uint8) {
return 18;
uint8 dec = 18;
return dec;
}

function deposit() external payable {
Expand Down

0 comments on commit abb6474

Please sign in to comment.