Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 committed Jan 13, 2025
1 parent 8def9e3 commit 8e02856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,11 @@ func (st *StateTransition) preCheck(gasBailout bool) error {
func (st *StateTransition) TransitionDb(refunds bool, gasBailout bool) (*evmtypes.ExecutionResult, error) {
fmt.Println(st.evm.Context.BlockNumber, "A")
if mint := st.msg.Mint(); mint != nil {
fmt.Println(mint.Uint64())
if err := st.state.AddBalance(st.msg.From(), mint, tracing.BalanceIncreaseDaoContract); err != nil {
fmt.Println("mint", st.msg.From(), mint.Uint64())
if err := st.state.AddBalance(st.msg.From(), mint, tracing.BalanceChangeUnspecified); err != nil {
return nil, fmt.Errorf("%w: %w", ErrStateTransitionFailed, err)
}
fmt.Println("end mint")
}
snap := st.state.Snapshot()

Expand Down

0 comments on commit 8e02856

Please sign in to comment.