def test_sign_tx_create_account_op(client): """Create new account with initial balance of 100.0333""" op = messages.StellarCreateAccountOp() op.new_account = "GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V" op.starting_balance = 1000333000 tx = _create_msg() response = stellar.sign_tx(client, tx, [op], ADDRESS_N, NETWORK_PASSPHRASE) assert ( b64encode(response.signature) == b"vrRYqkM4b54NrDR05UrW7ZHU7CNcidV0fn+bk9dqOW1bCbmX3YfeRbk2Tf1aea8nr9SD0sfBhtrDpdyxUenjBw==" )
def test_sign_tx_create_account_op(client): """Create new account with initial balance of 100.0333""" op = messages.StellarCreateAccountOp() op.new_account = "GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V" op.starting_balance = 1000333000 tx = _create_msg() response = stellar.sign_tx(client, tx, [op], ADDRESS_N, NETWORK_PASSPHRASE) assert ( b64encode(response.signature) == b"vrRYqkM4b54NrDR05UrW7ZHU7CNcidV0fn+bk9dqOW1bCbmX3YfeRbk2Tf1aea8nr9SD0sfBhtrDpdyxUenjBw==" # beb458aa43386f9e0dac3474e54ad6ed91d4ec235c89d5747e7f9b93d76a396d5b09b997dd87de45b9364dfd5a79af27afd483d2c7c186dac3a5dcb151e9e307 )
def test_sign_tx_create_account_op(self): """Create new account with initial balance of 100.0333""" self.setup_mnemonic_nopin_nopassphrase() op = proto.StellarCreateAccountOp() op.new_account = 'GBOVKZBEM2YYLOCDCUXJ4IMRKHN4LCJAE7WEAEA2KF562XFAGDBOB64V' op.starting_balance = 1000333000 tx = self._create_msg() response = self.client.stellar_sign_transaction( tx, [op], self.ADDRESS_N, self.NETWORK_PASSPHRASE) assert b64encode( response.signature ) == b'vrRYqkM4b54NrDR05UrW7ZHU7CNcidV0fn+bk9dqOW1bCbmX3YfeRbk2Tf1aea8nr9SD0sfBhtrDpdyxUenjBw=='