current position:Home>Return and read a structure through Web3

Return and read a structure through Web3

2022-02-03 20:47:34 Q & A of Denglian community

I'm using structure mapping to store data into my contract .

for instance , I'm storing employee information ( full name / Address / salary ), And through their ID mapping .

adopt Web front end , I hope to appoint an employee ID, I will call a function in my contract. ( Use Web3.JS) To return employee information .

If a structure is returned , How to access the data ? Can this be done ? Original address






Other answers 1:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032047277108.html

Random recommended