telemint icon indicating copy to clipboard operation
telemint copied to clipboard

Using ~ operator to overwrite balance value

Open thekiba opened this issue 1 year ago • 2 comments

I went through the entire smart contracts code and only found a missing op read check that was reported in pr #5.

Therefore, I decided to propose to slightly improve the work with balances using the ~ operator.

thekiba avatar Oct 22 '22 16:10 thekiba

I went through the entire smart contracts code and only found a missing op read check that was reported in pr #5.

Therefore, I decided to propose to slightly improve the work with balances using the ~ operator.

Vovanchik25071982 avatar Oct 23 '22 00:10 Vovanchik25071982

Nice, but it looks a bit misleading in the case of maybe_end_auction when the subsequent two function arguments are changed too. I think it is a bit cleaner the way it is now.

Hypothetically, it would be interesting to be able to write something like this (my_balance, owner_address, auction)~maybe_end_auction(royalty_params, -1)

arseny30 avatar Oct 24 '22 12:10 arseny30