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

Commit

Permalink
update cairo
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 c8b78db commit dd05a53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cairoVM/cairo.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,14 @@ func (c *Cairo) HandleDeclareTx(tx *core.DeclareTransaction, class core.Class) (
}

func (c *Cairo) HandleInvokeTx(tx *core.InvokeTransaction) (*vm.TransactionTrace, error) {
tx.Nonce = &felt.Zero
tx.MaxFee = c.MaxFee
tx.SenderAddress = c.acc.pubkey
txnHash, err := core.TransactionHash(tx, c.cfg.Network)
if err != nil {
return nil, err
}
tx.TransactionHash = txnHash
tx.Nonce = &felt.Zero
tx.MaxFee = c.MaxFee

sig, err := c.acc.Sign(context.Background(), txnHash)
if err != nil {
Expand Down

0 comments on commit dd05a53

Please sign in to comment.