Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
handle deploy
Browse files Browse the repository at this point in the history
Signed-off-by: Qiang Zhou <[email protected]>
  • Loading branch information
zhouqiang-cl committed Feb 2, 2024
1 parent 0dc21fa commit bbde791
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions cairoVM/deploy.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package cairoVM

import (
"fmt"

"github.com/NethermindEth/juno/core"
"github.com/NethermindEth/juno/core/felt"
"github.com/NethermindEth/starknet.go/account"
Expand Down Expand Up @@ -65,10 +63,6 @@ func NewDeployCoolOld() (*core.InvokeTransaction, error) {

calldataLength := new(felt.Felt).SetUint64(0)

// calldata := felt.Felt{}

// params := new(felt.Felt).SetUint64(8088)
// Building the functionCall struct, where :
FnCall := rpc.FunctionCall{
ContractAddress: contractAddress, //contractAddress is the contract that we want to call
EntryPointSelector: utils.GetSelectorFromNameFelt(deployContractMethod), //this is the function that we want to call
Expand All @@ -77,8 +71,6 @@ func NewDeployCoolOld() (*core.InvokeTransaction, error) {

txCallData := account.FmtCallDataCairo2([]rpc.FunctionCall{FnCall})

fmt.Println("invoke calldata = ", txCallData)

tx := core.InvokeTransaction{
Version: new(core.TransactionVersion).SetUint64(1),
ContractAddress: contractAddress,
Expand Down

0 comments on commit bbde791

Please sign in to comment.