Skip to content

Commit

Permalink
Enable NFT in regtest
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Fieroni <[email protected]>
  • Loading branch information
bvbfan committed Feb 23, 2023
1 parent bd9cc02 commit efa860b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/omnicore/rules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ CRegTestConsensusParams::CRegTestConsensusParams()
MSC_NONFUNGIBLE_BLOCK = 0;
MSC_DELEGATED_ISSUANCE_BLOCK = 0;
MSC_SEND_TO_MANY_BLOCK = 0;
MSC_NFT_BLOCK = 999999;
MSC_NFT_BLOCK = 0;
// Other feature activations:
GRANTEFFECTS_FEATURE_BLOCK = 999999;
DEXMATH_FEATURE_BLOCK = 999999;
Expand Down
6 changes: 3 additions & 3 deletions test/functional/omni_nonfungibletokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ def run_test(self):
unspent = utxos
break
rawtx = self.nodes[1].createrawtransaction([{"txid":unspent['txid'], "vout":unspent['vout']}], [{unspent['address']:unspent['amount'] - Decimal('0.00001')}])
payload = self.nodes[1].omni_createpayload_setnonfungibledata(property_id, 102, 102, True, "Test non-issuer update")
payload = self.nodes[1].omni_createpayload_setnonfungibledata(property_id, 102, 102, False, "Test non-issuer update")
rawtx = self.nodes[1].omni_createrawtx_opreturn(rawtx, payload)
signed_rawtx = self.nodes[1].signrawtransactionwithwallet(rawtx)
txid = self.nodes[1].sendrawtransaction(signed_rawtx['hex'])
Expand All @@ -682,7 +682,7 @@ def run_test(self):

# Check issuer data set by non-issuer
result = self.nodes[1].omni_getnonfungibletokendata(property_id, 102)
assert_equal(result[0]['issuerdata'], 'Test non-issuer update')
assert_equal(result[0]['holderdata'], 'Test non-issuer update')

# Fund activation address
activation_address = self.nodes[1].getnewaddress("", "legacy")
Expand Down Expand Up @@ -719,7 +719,7 @@ def run_test(self):

# Check issuer data same as before by non-issuer
result = self.nodes[1].omni_getnonfungibletokendata(property_id, 102)
assert_equal(result[0]['issuerdata'], 'Test non-issuer update')
assert_equal(result[0]['holderdata'], 'Test non-issuer update')

if __name__ == '__main__':
OmniNonFungibleTokensTest().main()

0 comments on commit efa860b

Please sign in to comment.