Skip to content

Commit

Permalink
upgrade yu (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lawliet-Chan authored Apr 16, 2024
1 parent 27b2c65 commit fb014fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 0 additions & 8 deletions cairo/cairo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cairo

import (
"encoding/hex"
"encoding/json"
junostate "github.com/NethermindEth/juno/blockchain"
"github.com/NethermindEth/juno/core"
"github.com/NethermindEth/juno/core/felt"
Expand Down Expand Up @@ -102,13 +101,6 @@ func (c *Cairo) CheckTxn(txn *types.SignedTxn) error {
// Replace the txHash with the Hash of starknet Txn
txn.TxnHash = starkTx.Hash().Bytes()

newTxReqByt, err := json.Marshal(txReq)
if err != nil {
return err
}

txn.SetParams(string(newTxReqByt))

return nil
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/sirupsen/logrus v1.9.0
github.com/sourcegraph/conc v0.2.0
github.com/stretchr/testify v1.8.4
github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999
github.com/yu-org/yu v0.0.0-20240415152650-db2903655297
)

require (
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,8 @@ github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRT
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673/go.mod h1:N3UwUGtsrSj3ccvlPHLoLsHnpR27oXr4ZE984MbSER8=
github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999 h1:S+phH6kSI3Opbhr2AvJMu38SAbUqOlV3ayI0U9Ak54o=
github.com/yu-org/yu v0.0.0-20240320055213-cb9a4b6cf999/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo=
github.com/yu-org/yu v0.0.0-20240415152650-db2903655297 h1:ynCpNLkORUPnIMkfxlAzofOMy0a05G+7FiYlSk1juJQ=
github.com/yu-org/yu v0.0.0-20240415152650-db2903655297/go.mod h1:W2qfPLdMEmzOymqCFxb3vN+fjZT94CoWPCVPtpgxwdo=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
Expand Down

0 comments on commit fb014fa

Please sign in to comment.