def test_fee_pool(self): s = { "fee": { "amount": 10001, "asset_id": "1.3.0" }, "from_account": "1.2.282", "asset_id": "1.3.32", "amount": 15557238, "extensions": [] } op = operations.Asset_fund_fee_pool(**s) ops = [Operation(op)] tx = Signed_Transaction(ref_block_num=ref_block_num, ref_block_prefix=ref_block_prefix, expiration=expiration, operations=ops) tx = tx.sign([wif], chain=prefix) tx.verify([PrivateKey(wif).pubkey], "BTS") txWire = hexlify(bytes(tx)).decode("ascii") compare = ("f68585abf4dce7c8045701101127000000000000009a02207662" "ed00000000000000011f39f7dc7745076c9c7e612d40c68ee92d" "3f4b2696b1838037ce2a35ac259883ba6c6c49d91ad05a7e78d8" "0bb83482c273dbbc911587487bf468b85fb4f537da3d") self.assertEqual(compare[:-130], txWire[:-130])
def test_fee_pool(self): self.op = operations.Asset_fund_fee_pool(**{ "fee": {"amount": 10001, "asset_id": "1.3.0" }, "from_account": "1.2.282", "asset_id": "1.3.32", "amount": 15557238, "extensions": [] }) self.cm = ("f68585abf4dce7c8045701101127000000000000009a02207662" "ed00000000000000011f39f7dc7745076c9c7e612d40c68ee92d" "3f4b2696b1838037ce2a35ac259883ba6c6c49d91ad05a7e78d8" "0bb83482c273dbbc911587487bf468b85fb4f537da3d") self.doit()