The preview uses mainnet. In order to test the send functionality on testnet, you need to follow the instructions in the README I’ve added (deploy HYPE token contract and switch Next.js environment).
Implementation details
General
is not coupled with the sandbox testing PR anymore, uses testnet configuration
Use testnet: pulls fungible token contracts from near-examples and deploys them using a dev account.
UI:
User can only send as much HYPE as available on their account
Receiver account must exist
Transaction will fail if receiver is not registered in the token contract (we can not check before sending because it’s an contract internal error, wallet will report it)
Contracts:
fungible token implementation is unmodified example from near-examples
Wrapper scripts added that use near-cli to set everything up