Skip to content

Commit

Permalink
mv big0
Browse files Browse the repository at this point in the history
  • Loading branch information
ucwong committed Dec 13, 2023
1 parent ab5c8d2 commit c165094
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions core/state_quota.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ import (
"math/big"
)

var (
big0 = big.NewInt(0)
)

func (st *StateTransition) preQuotaCheck() error {
if st.uploading() {
// log.Debug("state_transition", "uploading", st.uploading(), "st.state.GetNum(st.to())", st.state.GetNum(st.to()))
Expand Down
3 changes: 0 additions & 3 deletions core/state_transition.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,6 @@ The state transitioning model does all the necessary work to work out a valid ne
5) Run Script section
6) Derive new state root
*/
var (
big0 = big.NewInt(0)
)

// StateTransition is the state of current tx in vm
type StateTransition struct {
Expand Down

0 comments on commit c165094

Please sign in to comment.