CRYPTO NEWS

SVG building loop crashing

I’m new to Ethereum and solidity and am experimenting with on-chain generated svg’s.

While trying to build a 32 x 32 my code crashes weather on Remix or testing on VS Code HardHat/Ganache.

Following code crashes but will run fine if you decrease the for limits from 1024 to 96.

contract Svggen {  function svg() public pure returns (string memory){     string memory svgS="<svg width='1024' height='1024'><defs><rect id='1' x='0' y='0' width='32' height='32' style='fill:rgb(0,0,255)'/><rect id='2' x='0' y='0' width='32' height='32' style='fill:rgb(255,0,255)'/><rect id='3' x='0' y='0' width='32' height='32' style='fill:rgb(0,255,255)'/><rect id='4' x='0' y='0' width='32' height='32' style='fill:rgb(0,0,255)'/><rect id='5' x='0' y='0' width='32' height='32' style='fill:rgb(255,255,255)'/></defs>";     for(uint y=0; y < 1024; y = y + 32) {         svgS = string(abi.encodePacked(svgS,"<svg y='",Strings.toString(y),"'>"));         for(uint x=0; x < 1024; x = x + 32) {             // href='#' will ve variable             svgS = string(abi.encodePacked(svgS,"<use href='#1' x='",Strings.toString(x),"'/>"));         }         svgS = string(abi.encodePacked(svgS,"</svg>"));     }     svgS = string(abi.encodePacked(svgS,"</svg>"));     return svgS;      } 

}

Is this doable or is it just too large of an operation?

Terra founder Do Kwon claims he is ‘making zero efforts to hide’

Terra’s founder Do Kwon is making light of his situation as he claims that he is making “zero efforts  to hide.” Yeah as i said im making zero effort to hide I go on walks and malls, no way none of CT hasnt run into me the past couple weeks — Do Kwon (@stablekwon) September::Listen

Terra’s founder Do Kwon is making light of his situation as he claims that he is making “zero efforts  to hide.”

The embattled founder continued that he “go(es) on walks and malls, no way none of CT hasn’t run into me the past couple weeks.”

Kwon made the statement in response to inquiries about his whereabouts from the crypto community. The Terra founder stated that he was “writing code” in his living room.

When questioned about the red notice issued by Interpol based on South Korea’s request, Kwon said he “found nothing” adding a link to Interpol’s website to his tweet.

A crypto community member pointed out that the “majority of Red Notices are not made public and are restricted to law enforcement use only.” Kwon, however, stated that the information was made “max public.”

Kwon did not respond to questions asking if he was still in Singapore.

The Terra founder has consistently maintained that he was not on the run nor hiding from the authorities. According to him, he is cooperative with governments that are in touch.

Meanwhile, South Korean authorities have stated that Kwon is on the run.

The post Terra founder Do Kwon claims he is ‘making zero efforts to hide’ appeared first on CryptoSlate.

SVG building loop crashing

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