-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented config reset command #401
Changes from all commits
b3e75c3
0d901a1
4c08e9a
bbf9c13
6a5a73d
de793d3
885b9ea
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ def test_get_account(): | |
|
||
def test_sync_nonce(): | ||
account = Account(address=Address.new_from_bech32("erd1qyu5wthldzr8wx5c9ucg8kjagg0jfs53s8nr3zpz3hypefsdd8ssycr6th")) | ||
proxy = ProxyNetworkProvider("https://devnet-api.multiversx.com") | ||
proxy = ProxyNetworkProvider("https://testnet-api.multiversx.com") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so do we change to testnet in tests? or it was just temporarly for testing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because of the devnet situation, the tests we're failing, so that's why I switched to testnet. We can switch for now because it seems it'a a little bit more stable. |
||
account.sync_nonce(proxy) | ||
assert True if account.nonce else False | ||
|
||
|
@@ -32,11 +32,11 @@ def test_query_contract(): | |
[ | ||
"contract", | ||
"query", | ||
"erd1qqqqqqqqqqqqqpgqpuz9r56ylk39x45cgqmaw2w8hfn47ft3d8ssavktr5", | ||
"erd1qqqqqqqqqqqqqpgq8z2zzyu30f4607hth0tfj5m3vpjvwrvvrawqw09jem", | ||
"--function", | ||
"getSum", | ||
"--proxy", | ||
"https://devnet-api.multiversx.com", | ||
"https://testnet-api.multiversx.com", | ||
] | ||
) | ||
assert False if result else True | ||
|
@@ -48,9 +48,9 @@ def test_get_transaction(): | |
"tx", | ||
"get", | ||
"--proxy", | ||
"https://devnet-api.multiversx.com", | ||
"https://testnet-api.multiversx.com", | ||
"--hash", | ||
"9e6ca966b18dc0317ff3be9b53be183ddb068a163769d286b2c1b1dff3ac00e5", | ||
"bf63fdd7d74cbc78f1ec0fbad05f156984a5c995b782e1947352210dd80c5164", | ||
] | ||
) | ||
assert False if result else True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proxy not needed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, because we are not sending the transaction. We used the proxy just to get the nonce which in our test it's not really relevant.