cadence icon indicating copy to clipboard operation
cadence copied to clipboard

Pretty print adding extra parenthesis

Open bluesign opened this issue 2 years ago • 3 comments

Current Behavior

let ref = self.nftProviderCapability.borrow()!.borrowNFT(self.details.nftID) becomes let ref = (self.nftProviderCapability.borrow()!).borrowNFT(self.details.nftID)

Expected Behavior

let ref = self.nftProviderCapability.borrow()!.borrowNFT(self.details.nftID)

Steps To Reproduce

  1. try to pretty print above example

Environment

- Cadence version:Stable-Cadence
- Network:

bluesign avatar Sep 11 '23 19:09 bluesign