From f0e88eacea6a99b61e236cc21854e706685fe272 Mon Sep 17 00:00:00 2001 From: gftea <1705787+gftea@users.noreply.github.com> Date: Sat, 13 May 2023 13:53:26 +0200 Subject: [PATCH] Update BasicCoin.move MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix warnings ``` warning[W10007]: potential issue with attribute value ┌─ ./sources/BasicCoin.move:94:24 │ 94 │ #[expected_failure(abort_code = 2)] // Can specify an abort code │ ^^^^^^^^^^ - Replace value with constant from expected module or add `location=...` attribute. │ │ │ WARNING: passes for an abort from any module. ``` --- .../tutorial/step_5/BasicCoin/sources/BasicCoin.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/documentation/tutorial/step_5/BasicCoin/sources/BasicCoin.move b/language/documentation/tutorial/step_5/BasicCoin/sources/BasicCoin.move index f901557178..46f5d6d645 100644 --- a/language/documentation/tutorial/step_5/BasicCoin/sources/BasicCoin.move +++ b/language/documentation/tutorial/step_5/BasicCoin/sources/BasicCoin.move @@ -91,7 +91,7 @@ module NamedAddr::BasicCoin { } #[test(account = @0x1)] - #[expected_failure(abort_code = 2)] // Can specify an abort code + #[expected_failure(abort_code = EALREADY_HAS_BALANCE)] // Can specify an abort code fun publish_balance_already_exists(account: signer) { publish_balance(&account); publish_balance(&account);