-
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
Integrate latest sdk-py v1 #466
Conversation
Merge main into feat/next
data = "makeNewContractFromValidatorData@" + args_to_string([max_cap, fee]) | ||
|
||
serializer = Serializer() | ||
data = "makeNewContractFromValidatorData@" + serializer.serialize([BigUIntValue(max_cap), BigUIntValue(fee)]) |
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.
Maybe we should have this function in the sdk-py (factories, controllers), as well?
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.
indeed, will be added.
... | ||
|
||
|
||
class Simulation(ISerializable): | ||
def __init__(self, simulate_response: ISimulateResponse) -> None: | ||
def __init__(self, simulate_response: TransactionOnNetwork) -> None: |
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.
Just a double-check, do we have some CI tests for this functionality, as well?
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.
to be honest, I don't think we have. The interface was indeed a TransactionOnNetwork
object that was only converted to a dictionary.
@@ -211,8 +203,8 @@ def tx_to_dictionary_as_inner_for_relayed_V1(tx: Transaction) -> Dict[str, Any]: | |||
dictionary: Dict[str, Any] = {} | |||
|
|||
dictionary["nonce"] = tx.nonce | |||
dictionary["sender"] = base64.b64encode(Address.new_from_bech32(tx.sender).get_public_key()).decode() | |||
dictionary["receiver"] = base64.b64encode(Address.new_from_bech32(tx.receiver).get_public_key()).decode() | |||
dictionary["sender"] = base64.b64encode(tx.sender.get_public_key()).decode() |
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.
Let's remove tx_to_dictionary_as_inner_for_relayed_V1
and legacy relayed V1 support in v10 🤞
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.
we will.
rich==13.3.4 | ||
argcomplete==3.2.2 | ||
|
||
multiversx-sdk==0.19.0 | ||
multiversx-sdk==1.0.0 |
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 description provided.