Skip to content

Commit

Permalink
Merge pull request #1855 from CortexFoundation/dev
Browse files Browse the repository at this point in the history
mv big0
  • Loading branch information
ucwong authored Dec 16, 2023
2 parents 47e07a0 + c165094 commit 6ff3367
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 6ff3367

Please sign in to comment.