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

Commit

Permalink
remove useless code
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 9571d34 commit 6e48aad
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cairoVM/invoke.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ var (
)

func NewInvoke() (*core.InvokeTransaction, error) {
//InvokeTx := rpc.InvokeTxnV1{
// Version: rpc.TransactionV1,
// Type: rpc.TransactionType_Invoke,
//}

// Converting the contractAddress from hex to felt
contractAddress := new(felt.Felt).SetUint64(2)

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(contractMethod), //this is the function that we want to call
Expand All @@ -43,7 +37,6 @@ func NewInvoke() (*core.InvokeTransaction, error) {
ContractAddress: contractAddress,
EntryPointSelector: utils.GetSelectorFromNameFelt(contractMethod),
CallData: txCallData,
// CallData: []*felt.Felt{randata},
}

return &tx, nil
Expand Down

0 comments on commit 6e48aad

Please sign in to comment.