From 7e3be45c8ba21de73f1b63fcc38abea9cc1813ab Mon Sep 17 00:00:00 2001 From: Xinran <1576710154@qq.com> Date: Wed, 31 Jan 2024 12:08:06 +0800 Subject: [PATCH] fix (#16) --- cairoVM/cairo.go | 2 +- cairoVM/cmd/main.go | 4 ++-- data/{genesis => }/erc20.casm.json | 0 data/{genesis => }/erc20.sierra.json | 0 data/{ => genesis}/cool_compiled_class.casm | 0 data/{ => genesis}/cool_sierra_contract_class.json | 0 6 files changed, 3 insertions(+), 3 deletions(-) rename data/{genesis => }/erc20.casm.json (100%) rename data/{genesis => }/erc20.sierra.json (100%) rename data/{ => genesis}/cool_compiled_class.casm (100%) rename data/{ => genesis}/cool_sierra_contract_class.json (100%) diff --git a/cairoVM/cairo.go b/cairoVM/cairo.go index 486b1c5..238b0f0 100644 --- a/cairoVM/cairo.go +++ b/cairoVM/cairo.go @@ -44,7 +44,7 @@ func NewCairoVM(cfg *Config) (*Cairo, error) { []string{ "data/genesis/NoValidateAccount.sierra.json", "data/genesis/UniversalDeployer.json", - "data/genesis/erc20.sierra.json", + "data/genesis/cool_sierra_contract_class.json", }, ) if err != nil { diff --git a/cairoVM/cmd/main.go b/cairoVM/cmd/main.go index 498c0ae..89eda94 100644 --- a/cairoVM/cmd/main.go +++ b/cairoVM/cmd/main.go @@ -22,8 +22,8 @@ func main() { // declare TX declareTx, class, err := cairoVM.NewDeclare( - "data/cool_sierra_contract_class.json", - "data/cool_compiled_class.casm", + "data/erc20.sierra.json", + "data/erc20.casm.json", ) if err != nil { panic(err) diff --git a/data/genesis/erc20.casm.json b/data/erc20.casm.json similarity index 100% rename from data/genesis/erc20.casm.json rename to data/erc20.casm.json diff --git a/data/genesis/erc20.sierra.json b/data/erc20.sierra.json similarity index 100% rename from data/genesis/erc20.sierra.json rename to data/erc20.sierra.json diff --git a/data/cool_compiled_class.casm b/data/genesis/cool_compiled_class.casm similarity index 100% rename from data/cool_compiled_class.casm rename to data/genesis/cool_compiled_class.casm diff --git a/data/cool_sierra_contract_class.json b/data/genesis/cool_sierra_contract_class.json similarity index 100% rename from data/cool_sierra_contract_class.json rename to data/genesis/cool_sierra_contract_class.json