Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Update neo-boa to integrate with CityOfZion/neo-python#716 #111

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions boa_test/tests/boa_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ class BoaTest(WalletFixtureTestCase):

dirname = None

FIXTURE_REMOTE_LOC = 'https://s3.us-east-2.amazonaws.com/cityofzion/fixtures/fixtures_v8.tar.gz'
FIXTURE_REMOTE_LOC = 'https://s3.us-east-2.amazonaws.com/cityofzion/fixtures/fixtures_v9.tar.gz'
FIXTURE_FILENAME = 'fixtures/empty_fixture.tar.gz'

wallet_1_script_hash = UInt160(data=b'S\xefB\xc8\xdf!^\xbeZ|z\xe8\x01\xcb\xc3\xac/\xacI)')
wallet_1_script_hash = UInt160(data=b'\x1c\xc9\xc0\\\xef\xff\xe6\xcd\xd7\xb1\x82\x81j\x91R\xec!\x8d.\xc0')

wallet_1_addr = 'APRgMZHZubii29UXF9uFa6sohrsYupNAvx'
wallet_1_addr = 'AJQ6FoaSXDFzA6wLnyZ1nFN7SGSN2oNTc3'
Copy link
Author

@jseagrave21 jseagrave21 Nov 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the wallet address here because the previous wallet address does not correspond to neo-test1-w.wallet whereas wallet_1_addr does correspond correctly here

wallet_1_addr = 'AJQ6FoaSXDFzA6wLnyZ1nFN7SGSN2oNTc3'


_wallet1 = None

Expand Down Expand Up @@ -48,8 +48,8 @@ class BoaFixtureTest(WalletFixtureTestCase):

dirname = None

FIXTURE_REMOTE_LOC = 'https://s3.us-east-2.amazonaws.com/cityofzion/fixtures/fixtures_v8.tar.gz'
FIXTURE_FILENAME = './fixtures/fixtures_v8.tar.gz'
FIXTURE_REMOTE_LOC = 'https://s3.us-east-2.amazonaws.com/cityofzion/fixtures/fixtures_v9.tar.gz'
FIXTURE_FILENAME = './fixtures/fixtures_v9.tar.gz'

wallet_1_script_hash = UInt160(data=b'\x1c\xc9\xc0\\\xef\xff\xe6\xcd\xd7\xb1\x82\x81j\x91R\xec!\x8d.\xc0')

Expand Down
4 changes: 2 additions & 2 deletions boa_test/tests/test_ico_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def test_ICOTemplate_4_attachments(self):
out = output.write()

# test mint tokens without being kyc verified
tx, results, total_ops, engine = TestBuild(out, ['get_attachments', '[]', '--attach-neo=10'], self.GetWallet3(), '0705', '05')
tx, results, total_ops, engine = TestBuild(out, ['get_attachments', '[]', '--attach-neo=10'], self.GetWallet3(), '0705', '05', arguments=['--from-addr=AZiE7xfyJALW7KmADWtCJXGGcnduYhGiCX'])
self.assertEqual(len(results), 1)
attachments = results[0].GetArray()
self.assertEqual(len(attachments), 4)
Expand Down Expand Up @@ -252,7 +252,7 @@ def test_ICOTemplate_5_mint(self):
TestContract.dispatched_events = []

# test mint tokens, this should return true
tx, results, total_ops, engine = TestBuild(out, ['mintTokens', '[]', '--attach-neo=10'], self.GetWallet3(), '0705', '05')
tx, results, total_ops, engine = TestBuild(out, ['mintTokens', '[]', '--attach-neo=10'], self.GetWallet3(), '0705', '05', arguments=['--from-addr=AZiE7xfyJALW7KmADWtCJXGGcnduYhGiCX'])
self.assertEqual(len(results), 1)
self.assertEqual(results[0].GetBoolean(), True)

Expand Down
2 changes: 1 addition & 1 deletion boa_test/tests/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def on_log(evt):

tx, results, total_ops, engine = TestBuild(out, ['get_time', 1], self.GetWallet1(), '0202', '02')
self.assertEqual(len(results), 1)
self.assertEqual(results[0].GetByteArray(), bytearray(b'\xc2Y\xa1['))
self.assertEqual(results[0].GetByteArray(), bytearray(b'oP\xef['))

tx, results, total_ops, engine = TestBuild(out, ['check_witness', self.wallet_1_script_hash.Data], self.GetWallet1(), '02', '02')
self.assertEqual(len(results), 1)
Expand Down
Binary file modified fixtures/neo-test1-w.wallet
Binary file not shown.
Binary file modified fixtures/neo-test2-w.wallet
Binary file not shown.
Binary file modified fixtures/neo-test3-w.wallet
Binary file not shown.