-
Notifications
You must be signed in to change notification settings - Fork 16
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
[PSDK-500] Contract Invocation Support #13
Conversation
✅ Heimdall Review Status
|
26774c8
to
4786f45
Compare
4786f45
to
6289e38
Compare
ValueError: If the default address does not exist. | ||
|
||
""" | ||
if self.default_address is 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.
slight different but in the typescript SDK we error if there is no default_address in the defaultAddress()
function so this if check is not needed across all the functions. should we do that same pattern 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.
That's reasonable. I will take a pass through in a follow-up and key all of these off the can sign property.
cdp/wallet_address.py
Outdated
ContractInvocation: The contract invocation object. | ||
|
||
""" | ||
normalied_amount = Decimal(amount) if amount else Decimal("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.
typo: normalied_amount > normalized_amount
Review Error for rohan-agarwal-coinbase @ 2024-09-30 15:05:23 UTC |
Review Error for rohan-agarwal-coinbase @ 2024-09-30 15:09:39 UTC |
What changed? Why?
wallet.invoke_contract(...)
Qualified Impact