From 9d2a0903985c4217db5b8c11471b9a22740b2d82 Mon Sep 17 00:00:00 2001 From: tintinweb Date: Thu, 21 Jul 2022 19:11:44 +0200 Subject: [PATCH] fix nonreentrant snippet - fixes #25 --- snippets/vyper.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/vyper.json b/snippets/vyper.json index 57f92b3..70d9c2d 100644 --- a/snippets/vyper.json +++ b/snippets/vyper.json @@ -198,7 +198,7 @@ }, "function nonreentrant declaration": { "prefix": "funcnonreentrant", - "body": "@(nonreentrant\"${1:lock}\")\n@external\ndef ${2:name}(${3:_name}: ${4:type}):\n\t$0\n" + "body": "@nonreentrant(\"${1:lock}\")\n@external\ndef ${2:name}(${3:_name}: ${4:type}):\n\t$0\n" }, "function external viewonly declaration": { "prefix": "funcview",