Skip to content

Commit

Permalink
Add starknet_getCompiledCasm endpoint (#2204)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirugan authored and pnowosie committed Nov 5, 2024
1 parent 1378c79 commit 0f2c900
Show file tree
Hide file tree
Showing 10 changed files with 1,390 additions and 4 deletions.
3 changes: 1 addition & 2 deletions adapters/core2sn/class.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package core2sn

import (
"github.com/NethermindEth/juno/core"
"github.com/NethermindEth/juno/core/felt"
"github.com/NethermindEth/juno/starknet"
"github.com/NethermindEth/juno/utils"
)
Expand All @@ -20,7 +19,7 @@ func AdaptCompiledClass(coreCompiledClass *core.CompiledClass) starknet.Compiled
feederCompiledClass.PythonicHints = coreCompiledClass.PythonicHints
feederCompiledClass.CompilerVersion = coreCompiledClass.CompilerVersion
feederCompiledClass.Hints = coreCompiledClass.Hints
feederCompiledClass.Prime = "0x" + coreCompiledClass.Prime.Text(felt.Base16)
feederCompiledClass.Prime = utils.ToHex(coreCompiledClass.Prime)
feederCompiledClass.BytecodeSegmentLengths = AdaptSegmentLengths(coreCompiledClass.BytecodeSegmentLengths)

adapt := func(ep core.CompiledEntryPoint) starknet.CompiledEntryPoint {
Expand Down
Loading

0 comments on commit 0f2c900

Please sign in to comment.