diff --git a/neoutils/mobile_test.go b/neoutils/mobile_test.go index ce0f81f..1a01037 100644 --- a/neoutils/mobile_test.go +++ b/neoutils/mobile_test.go @@ -5,6 +5,7 @@ import ( "testing" "github.com/o3labs/neo-utils/neoutils" + "github.com/o3labs/neo-utils/neoutils/smartcontract" ) func TestMintTokensFromMobile(t *testing.T) { @@ -15,17 +16,20 @@ func TestMintTokensFromMobile(t *testing.T) { //ALL PRIVATE NET TEST ADDRESSES // wif := "KxDgvEKzgSBPPfuVfw67oPQBSjidEiqTHURKSDL1R7yGaGYAeYnr" // contract owner AK2nJJpJr6o664CWJKi1QRXjqeic2zRp8y // wif := "Kz3dZoCXU8SsmE67GLoGZKaghD1bG1kbePY72LVKpuchMqmRwKer" // Adm9ER3UwdJfimFtFhHq1L5MQ5gxLLTUes - wif := "L5h6cTh45egotcxFZ2rkF1gv7rLxx9rScfuja9kEVEE9mEj9Uwtv" //AQaZPqcv9Kg2x1eSrF8UBYXLK4WQoTSLH5 + // wif := "L5h6cTh45egotcxFZ2rkF1gv7rLxx9rScfuja9kEVEE9mEj9Uwtv" //AQaZPqcv9Kg2x1eSrF8UBYXLK4WQoTSLH5 + //this addresss is not whitelisted + wif := "L5gmcoaetU6YGSzg4wNqvKBEEAfwCAxWseuL3pxvLvEMZB9WyUYp" wallet, _ := neoutils.GenerateFromWIF(wif) log.Printf("address = %v\n address hash = %v %x", wallet.Address, neoutils.NEOAddressToScriptHash(wallet.Address), wallet.HashedSignature) - sendingAssetID := "c56f33fc6ecfcd0c225c4ab356fee59390af8560be0e930faebe74a6daff7c9b" //NEO - amount := float64(1) + neo := string(smartcontract.NEO) + // gas := string(smartcontract.GAS) + amount := float64(2) remark := "o3x" utxoEndpoint := "http://localhost:5000/" - networkFeeAmountInGAS := float64(0.0011) + networkFeeAmountInGAS := float64(0.001) - tx, err := neoutils.MintTokensRawTransactionMobile(utxoEndpoint, scriptHash, wif, sendingAssetID, amount, remark, networkFeeAmountInGAS) + tx, err := neoutils.MintTokensRawTransactionMobile(utxoEndpoint, scriptHash, wif, neo, amount, remark, networkFeeAmountInGAS) if err != nil { log.Printf("%v", err) t.Fail() diff --git a/neoutils/smartcontract/scriptbuilder.go b/neoutils/smartcontract/scriptbuilder.go index b266454..1016cd3 100644 --- a/neoutils/smartcontract/scriptbuilder.go +++ b/neoutils/smartcontract/scriptbuilder.go @@ -447,7 +447,7 @@ func (s *ScriptBuilder) GenerateTransactionOutput(sender NEOAddress, receiver NE Address: receiver, } list = append(list, out) - //if the uxid + } //if set network fee is more than 0 diff --git a/neoutils/version.go b/neoutils/version.go index 36752fd..0144bed 100644 --- a/neoutils/version.go +++ b/neoutils/version.go @@ -1,10 +1,13 @@ package neoutils const ( - VERSION = "1.0.2" + VERSION = "1.0.3" ) //RELEASE NOTES +//V. 1.0.3 +//mintTokens now triggers Verification + //V. 1.0.2 //- added txid in return //MintTokensRawTransaction(wallet Wallet, assetToSend smartcontract.NativeAsset, amount float64, unspent smartcontract.Unspent, remark string) ([]byte, string, error)