Skip to content

contracts: Passing zero as deposit_limit to call_v2 correctly limits the deposit to nothing#3392

Merged
athei merged 1 commit intopg/call_v2from
at/callzerodeposit
Feb 19, 2024
Merged

contracts: Passing zero as deposit_limit to call_v2 correctly limits the deposit to nothing#3392
athei merged 1 commit intopg/call_v2from
at/callzerodeposit

Conversation

@athei
Copy link
Member

@athei athei commented Feb 19, 2024

Only affects unstable v2 versions of call and instantiate. Also only when 0 was passed as desposit_limit. Old behaviour was allowing all the remaining balance. New correct behaviour is to not allow any deposit. Otherwise both passing the SENTINEL and encoding 0 would mean the same thing.

@athei athei requested a review from pgherveou February 19, 2024 14:19
@athei athei mentioned this pull request Feb 19, 2024
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 1/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/5262902

@athei athei merged commit 5a3b03e into pg/call_v2 Feb 19, 2024
@athei athei deleted the at/callzerodeposit branch February 19, 2024 14:38
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