You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Move compiler currently ignores unknown attributes. For example, the following code uses #[testonly] which is a typo of #[test_only]. This can leak some test-only code into the production.
#[testonly]
/// For functions that approximate a value it's useful to test a value is close
/// to the most correct value up to last digit
fun assert_approx_the_same(x: u128, y: u128, precission: u64) {
if (x < y) {
let tmp = x;
x = y;
y = tmp;
};
let mult = (pow(10, precission) as u128);
assert!((x - y) * mult < x, 0);
}
The text was updated successfully, but these errors were encountered:
🐛 Bug
The Move compiler currently ignores unknown attributes. For example, the following code uses
#[testonly]
which is a typo of#[test_only]
. This can leak some test-only code into the production.aptos-core/aptos-move/framework/aptos-stdlib/sources/math64.move
Line 254 in 9773481
The text was updated successfully, but these errors were encountered: