Metamascus error: ERC-681 Data Field I ignored
Asser off metamask, you like to get acquainted with the fact that you have managed and managed decentralized applications (DAPPS) to Etherum blockchain. As, trying to receive funds or scan for transactions, your metamascus wall is set, a one -time question arises: The data field is not included in the transaction.
Problem with ERC-681 data fields
ERC-681 has been set up standards for managing and confirmation of data on Witches Contracts on Ethereum Blockchain. Defines defines how these data fields are used to store and retriction of data from smart contracts. However, fields of whistle implementation data in your DAPPS Estong Erc-721, ERC-1155 or other libraries, it is not uncommon for the data field to be omitted.
Problem with Metamascus
When crossing the transmission using a metamic, the Data 'field was set up on 0x {hex}
, where {hex} represents a hexadecimal team on data. Unfortunately, this field metadodizes are not included in the Smart code Ethereum blockchain, which men will be to send a theme or scan or scan or scan.
Creating a QR code solution
To overcome this problem, you will cut one simultaneous QR codes. Here's a step:
- Make a new wallet address
: Make a new wallet and set up an account.
- Get a hexadecimal display of your information : Write the hexadecimal currency of your data field and store it blockchain (eg in the metamascus store).
- Make QR code : Use a tool such as a QR code generator to create a QR code from a hexadecimal value.
3 Alternatively, you can scan transactions using your QR code and send them.
Example Code
Here's an explosion how coldly implement this solution in JavaScript:
Javacript
Const metamascus = demand ("metmask");
// Create a new wallet
Const Account = Waiting Metamask.createaccount ();
// Get a hexadecimal view of your data field.
Const Hexdatafield = "0x ..." + {hex};
if
Const Qrcode = new Qrcode ({{
TEXT:{{Hexfield} scan to receive funds,
of “#0000000”,
Colorlight: “#ffff”,
});
// Use metamask to receive or scan
wait for an account.qrcodescanner (QRCode);
“ re
Conclusion
The issue of neglect of the ERC-681 data field in transactions can be frustration, but your solutions available. By directing a silly fell, you can surpass this problem with QR codes and Succel receive or scan for transactions that are your metamascus walelet.