CryptoFly.us | CRYPTOCURRENCY BITCOIN SHIRTS CLOTHING APPAREL HATS

CRYPTO NEWS

Liquid Index Series October 2021 Quarterly Review

Brave New Coin Index Governance Committee announces the following items discussed during the BNC October 2021 Quarterly Index Review. This change will affect the Bitcoin Liquid Index (BLX), Ethereum Liquid Index and XRP Liquid Index (XRPLX).

Array in Struct

I have a User struct and in it I want to have an array with the users posts. But every way I tried to add an empty array it threw an error. address payable public Owner; mapping(address => User) public users; struct User { address useraddress; Post[] posts; } struct Post { string contentlink; uint::Listen

I have a User struct and in it I want to have an array with the users posts. But every way I tried to add an empty array it threw an error.

address payable public Owner;  mapping(address => User) public users;  struct User {     address useraddress;     Post[] posts; }  struct Post {     string contentlink;     uint likes;     uint dislikes; }  constructor() {     Owner = payable(msg.sender); }  function login() public {     require(users[msg.sender].useraddress != msg.sender, "Already have account");     users[msg.sender] = User(msg.sender); } 

Liquid Index Series October 2021 Quarterly Review

Shopping cart
There are no products in the cart!
Continue shopping
0