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

Commit

Permalink
add invoke
Browse files Browse the repository at this point in the history
Signed-off-by: Qiang Zhou <[email protected]>
  • Loading branch information
zhouqiang-cl committed Jan 31, 2024
1 parent eb54f80 commit e3a8dcc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion cairoVM/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"testbot/cairoVM"

"github.com/NethermindEth/juno/core/felt"
"github.com/davecgh/go-spew/spew"
"testbot/cairoVM"
// "github.com/NethermindEth/juno/core"
)

Expand Down Expand Up @@ -35,4 +36,17 @@ func main() {
}
spew.Dump(trace)

invokeContract := "0x2"

invokeTx, err := cairoVM.NewInvoke(invokeContract)
if err != nil {
panic(err)
}

trace, err = vm.HandleInvokeTx(invokeTx) // Assuming there is a HandleInvokeTx function
if err != nil {
panic(err)
}
spew.Dump(trace)

}

0 comments on commit e3a8dcc

Please sign in to comment.