Skip to content

Commit

Permalink
Address all the comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksymMalicki committed Jan 13, 2025
1 parent 31aeeed commit 91a712a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion pkg/hintrunner/core/hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1235,7 +1235,6 @@ func (hint *InitSquashData) String() string {
}

func (hint *InitSquashData) Execute(vm *VM.VirtualMachine, ctx *hinter.HintRunnerContext) error {
// todo(rodro): Don't know if it could be called multiple times, or
err := hinter.InitializeSquashedDictionaryManager(ctx)
if err != nil {
ctx.SquashedDictionaryManager = hinter.SquashedDictionaryManager{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/runner/gas.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func gasInitialization(memory *mem.Memory) error {
if err != nil {
return err
}

// The order of the tokens is relevant, source: https://github.com/starkware-libs/cairo/blob/f6aaaa306804257bfc15d65b5ab6b90e141b54ec/crates/cairo-lang-sierra/src/extensions/modules/gas.rs#L194
preCostTokenTypes := []TokenGasCost{PedersenToken, PoseidonToken, BitwiseToken, EcOpToken, AddModToken, MulModToken}

for _, token := range preCostTokenTypes {
Expand Down
1 change: 0 additions & 1 deletion pkg/vm/builtins/builtin_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ const (
AddModeType
MulModType
GasBuiltinType
SystemType
)

func Runner(name BuiltinType) memory.BuiltinRunner {
Expand Down

0 comments on commit 91a712a

Please sign in to comment.