Skip to content
This repository has been archived by the owner on Jan 25, 2021. It is now read-only.

Commit

Permalink
removed log
Browse files Browse the repository at this point in the history
  • Loading branch information
apisit committed Apr 21, 2018
1 parent a00e734 commit 6067b78
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions neoutils/nep5.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,11 @@ func (n *NEP5) MintTokensRawTransaction(wallet Wallet, assetToSend smartcontract
//basically we need to sort in descending order for address and script hash
scriptHashInt := ConvertByteArrayToBigInt(fmt.Sprintf("%x", n.ScriptHash))
addressInt := ConvertByteArrayToBigInt(fmt.Sprintf("%x", wallet.HashedSignature))
log.Printf("scriptHashInt = %v addressInt = %v", scriptHashInt, addressInt)
//https://godoc.org/math/big#Int.Cmp
//if scripthash int is grether than address int
if scriptHashInt.Cmp(addressInt) == 1 {
log.Printf("append script")
scripts = append(scripts, emptyVerificationScript)
} else {
log.Printf("prepend script")
scripts = append([]interface{}{emptyVerificationScript}, scripts...)
}
}
Expand Down

0 comments on commit 6067b78

Please sign in to comment.