From abb647465d97eac2042724d8aabe5f98afe3cfe5 Mon Sep 17 00:00:00 2001 From: Maria Kotsifakou Date: Tue, 5 Nov 2024 11:58:04 -0600 Subject: [PATCH] decimals implementation: return TypedVal instead of literal --- test/demo-contracts/UniswapV2SwapRenamed.DAI.sol | 3 ++- test/demo-contracts/UniswapV2SwapRenamed.USDC.sol | 3 ++- test/demo-contracts/UniswapV2SwapRenamed.WETH.sol | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/demo-contracts/UniswapV2SwapRenamed.DAI.sol b/test/demo-contracts/UniswapV2SwapRenamed.DAI.sol index abc875a..7605879 100644 --- a/test/demo-contracts/UniswapV2SwapRenamed.DAI.sol +++ b/test/demo-contracts/UniswapV2SwapRenamed.DAI.sol @@ -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 { diff --git a/test/demo-contracts/UniswapV2SwapRenamed.USDC.sol b/test/demo-contracts/UniswapV2SwapRenamed.USDC.sol index b9985c0..36108b8 100644 --- a/test/demo-contracts/UniswapV2SwapRenamed.USDC.sol +++ b/test/demo-contracts/UniswapV2SwapRenamed.USDC.sol @@ -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 { diff --git a/test/demo-contracts/UniswapV2SwapRenamed.WETH.sol b/test/demo-contracts/UniswapV2SwapRenamed.WETH.sol index 31184a0..f078118 100644 --- a/test/demo-contracts/UniswapV2SwapRenamed.WETH.sol +++ b/test/demo-contracts/UniswapV2SwapRenamed.WETH.sol @@ -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 {