Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 693 Bytes

assertEqDecimal.md

File metadata and controls

31 lines (20 loc) · 693 Bytes

assertEqDecimal

Signature

function assertEqDecimal(uint256 left, uint256 right, uint256 decimals) internal
function assertEqDecimal(uint256 left, uint256 right, uint256 decimals, string memory err) internal;
function assertEqDecimal(int256 left, int256 right, uint256 decimals) internal;
function assertEqDecimal(int256 left, int256 right, uint256 decimals, string memory err) internal;

Description

Asserts left is equal to right.

left and right are formatted with decimals in the revert string.

Optionally includes an error message in the revert string.

SEE ALSO