Skip to content
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

Added support for the new RelayedV3 #155

Merged
merged 2 commits into from
Nov 21, 2024
Merged

Added support for the new RelayedV3 #155

merged 2 commits into from
Nov 21, 2024

Conversation

popenta
Copy link
Collaborator

@popenta popenta commented Nov 21, 2024

No description provided.

@popenta popenta self-assigned this Nov 21, 2024
Copy link

github-actions bot commented Nov 21, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  multiversx_sdk/core
  interfaces.py
  transaction.py
  multiversx_sdk/core/proto
  transaction_pb2.py 24
  transaction_serializer.py 72-73
  multiversx_sdk/core/transactions_factories
  relayed_transactions_factory.py
  transactions_factory_config.py
  multiversx_sdk/network_providers
  transactions.py
Project Total  

This report was generated by python-coverage-comment-action

transaction: ITransaction,
relayer_address: IAddress) -> Transaction:
"""Relayer address must be in the same shard with sender address."""
if transaction.data.decode().startswith("relayed"):
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe let the protocol enforce this, without additional logic in the SDKs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed

receiver="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u",
gas_limit=1_000_000,
chain_id=self.config.chain_id,
data=b"getContractConfig",
Copy link
Contributor

Choose a reason for hiding this comment

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

For the sake of the example, test or doSomething instead of getContractConfig (sounds like a readonly / query endpoint)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed the data field

@popenta popenta merged commit 9e1374f into main Nov 21, 2024
7 checks passed
@popenta popenta deleted the new-relayed-v3 branch November 21, 2024 11:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants