From 057404e317496d43248d9e23601d7f0075326735 Mon Sep 17 00:00:00 2001 From: Dmitry <98899785+mdqst@users.noreply.github.com> Date: Tue, 26 Aug 2025 13:32:57 +0300 Subject: [PATCH] fix: handle `#[ink::contract]` with spaces --- scripts/is_contract.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/is_contract.sh b/scripts/is_contract.sh index 2a7dce0d69..389d376456 100755 --- a/scripts/is_contract.sh +++ b/scripts/is_contract.sh @@ -43,7 +43,7 @@ if [ -z "$SOURCE_PATH" ]; then fi # Check for the #[ink::contract] macro in the source file -if grep -qE '^#\[(::)?ink::contract([^]]*)\]' "$SOURCE_PATH"; then +grep -q '#\s*\[\(::\)\?ink::contract' "$SOURCE_PATH"; then exit 0 else exit 1