diff --git a/test/functional/feature_consortium.py b/test/functional/feature_consortium.py index db555205bb6..4160433aa19 100644 --- a/test/functional/feature_consortium.py +++ b/test/functional/feature_consortium.py @@ -43,6 +43,7 @@ def run_test(self): symbolBTC = "BTC" symbolDOGE = "DOGE" + symbolLTC = "LTC" self.nodes[0].createtoken({ "symbol": symbolBTC, @@ -604,6 +605,21 @@ def run_test(self): self.nodes[0].generate(1) assert_equal(self.nodes[0].getaccount(newAddress), ['2.00000000@BTC']) + # Create another token + self.nodes[0].createtoken({ + "symbol": symbolLTC, + "name": symbolLTC, + "isDAT": True, + "collateralAddress": account0 + }) + self.nodes[0].generate(1) + + # Mint multiple tokens to an address + newAddress = self.nodes[0].getnewaddress("", "legacy") + self.nodes[0].minttokens({"amounts": ["2@" + symbolBTC, "2@" + symbolDOGE, '2@' + symbolLTC], "to": newAddress}) + self.nodes[0].generate(1) + assert_equal(self.nodes[0].getaccount(newAddress), ['2.00000000@' + symbolBTC, '2.00000000@' + symbolDOGE, '2.00000000@' + symbolLTC]) + assert_raises_rpc_error(-5, "recipient (NOTANADDRESS) does not refer to any valid address", self.nodes[0].minttokens, {"amounts": ["2@" + symbolBTC], "to": "NOTANADDRESS"})