Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

contract in solidity

/** contract is container where we write our code.
Each contract have it's own address.
if we have contract address and abi we can iteract with it.
 **/
contract MyContract {
    string public name = "Shirshak";
    //name is state variable of type string which live in blockchain. 
    /// @notice This function changes the value of the name variable
    // _newName we use _ before to tell that it is parameter 
    // string,struct and mapping are values that need to use memory
    // and after sometime it will remove from that place
    function updateName(string memory _newName) public {
         name = _newName;
    }
}
Comment

Solidity contract

contract ContractName {
  
}
Comment

PREVIOUS NEXT
Code Example
Typescript :: print string odd elements in python 
Typescript :: date time format typescript 
Typescript :: react functional component typescript 
Typescript :: how do i set limits in inputs in python 
Typescript :: how to use type in batch 
Typescript :: whats the cheapsdt csgo kniofe 
Typescript :: typescript string to enum 
Typescript :: already exists http status code 
Typescript :: typescript jest types not found 
Typescript :: number to string typescript 
Typescript :: cannot be loaded because running scripts is disabled on this system vs code 
Typescript :: adonis many to many 
Typescript :: ts remove first 0 number from string 
Typescript :: Explain the concept of Dangling Pointer and Null Pointer with Examples? Provide brief details of the scenarios in which pointer acts as dangling pointer. 
Typescript :: ngclass stackoverflow 
Typescript :: angular change element style on click 
Typescript :: how to access event.target elements in typescript 
Typescript :: how to send data between components in react with redirect 
Typescript :: typescript valueof object 
Typescript :: wordpress query to get posts by post meta 
Typescript :: what is children type in react 
Typescript :: close mat dialog programmatically 
Typescript :: parsing error: unexpected token eslint typescript 
Typescript :: jupyter notebook create table 
Typescript :: make an interface iterator typescript 
Typescript :: vertical dots latex 
Typescript :: reddit requests 429 
Typescript :: how to sort numbers in typescript 
Typescript :: prisma user model 
Typescript :: failed to enumerate objects in the container access is denied windows 10 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =