From 5097d1dee822e7d01366fe08f932bac33298abe3 Mon Sep 17 00:00:00 2001 From: chengaofei Date: Fri, 13 Dec 2024 15:17:17 +0800 Subject: [PATCH] [bugfix] create fg will use resource name (#64) --- tzrec/tools/create_fg_json.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tzrec/tools/create_fg_json.py b/tzrec/tools/create_fg_json.py index c7da4f7..03caffc 100644 --- a/tzrec/tools/create_fg_json.py +++ b/tzrec/tools/create_fg_json.py @@ -91,7 +91,8 @@ reserves.append(column.strip()) fg_json["reserves"] = reserves - fg_path = os.path.join(args.fg_output_dir, "fg.json") + fg_name = args.fg_resource_name if args.fg_resource_name else "fg.json" + fg_path = os.path.join(args.fg_output_dir, fg_name) with open(fg_path, "w") as f: json.dump(fg_json, f, indent=4)