near / docs

NEAR Protocol Documentation
https://docs.near.org
Apache License 2.0
148 stars 358 forks source link

[257] JavaScript Snippet Issue for NEAR Transfer #2173

Closed near-dx closed 1 month ago

near-dx commented 1 month ago

Title: JavaScript Snippet Issue for NEAR Transfer Description: The javascript snippet for Transfer NEAR does not work, NearPromise line must start with return for the transfer to be executed Summary: Customer is experiencing issues with the JavaScript snippet for NEAR transfers, specifically that it does not function unless 'return' is included at the start of the NearPromise line.

Info

Reported by: Guest (michael.peter@near.org) - Open in Gleap Location: US Type: 🚨 BUG

🔗 Open share link 🌍 Open ticket in Gleap

Metadata

browserName: Chrome(126.0.0.0) userAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 browser: Chrome systemName: MacOS sessionDuration: 2226 devicePixelRatio: 2 screenWidth: 3360 screenHeight: 1890 innerWidth: 2258 innerHeight: 1838 currentUrl: https://docs.near.org/build/smart-contracts/anatomy/actions language: en-US sdkVersion: 13.7.3 sdkType: javascript environment: prod

Screenshot

near-dx commented 1 month ago

Internal note 📝: Customer is experiencing issues with the JavaScript snippet for NEAR transfers, specifically that it does not function unless 'return' is included at the start of the NearPromise line.