Skip to content

Commit 280a733

Browse files
bitphagexeroc
authored andcommitted
Remove hack to pass proposal tests
Fix proposed in graphenelib xeroc/python-graphenelib#172
1 parent 0493979 commit 280a733

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/testnet/aio/test_bitshares.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ async def test_approve_disapprove_committee(bitshares, default_account):
117117

118118
@pytest.mark.asyncio
119119
async def test_approve_proposal(bitshares, default_account):
120+
# Set blocking to get "operation_results"
120121
bitshares.blocking = "head"
121-
parent = bitshares.new_tx()
122-
proposal = bitshares.new_proposal(parent=parent)
122+
proposal = bitshares.new_proposal()
123123
await bitshares.transfer(
124124
"init1", 1, "TEST", append_to=proposal, account=default_account
125125
)
@@ -143,8 +143,7 @@ async def test_disapprove_proposal(bitshares, default_account, unused_account):
143143

144144
# Create proposal
145145
bitshares.blocking = "head"
146-
parent = bitshares.new_tx()
147-
proposal = bitshares.new_proposal(parent=parent)
146+
proposal = bitshares.new_proposal()
148147
await bitshares.transfer(
149148
"init1", 1, "TEST", append_to=proposal, account=default_account
150149
)

0 commit comments

Comments
 (0)