Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Econymous
    @Econymous
    there's literally nothing wrong with this
    according to remix
    nar1ta0012
    @nar1ta0012
    @RudrikaFichadiya if you dont do anything wrong you could find the answer in a while!! love you all people
    taylor
    @tay23pup_gitlab
    HEllO??
    nar1ta0012
    @nar1ta0012
    @tay23pup_gitlab hi there
    taylor
    @tay23pup_gitlab
    @nar1ta0012 how do you change your profile picture??
    naveen
    @naveen1inet_twitter
    hello
    Warning: Unused function parameter. Remove or comment out the variable name to silence this warning.
    uint256 initialSupply
    can any one help me
    naveen
    @naveen1inet_twitter

    I like to integrate a real token synchronization (From distributer wallet account to user's wallet address the token need to transfer) in my website. My website needs to interact with the blockchain real token need to be transferred to the user's wallet address

    I have check varoius Dapps not working on my website

    If any have experience Real token synchronization let us know as soon as possible

    @pavankat
    prathyusha12345
    @prathyusha12345
    I have tried compiling locally...But I am getting error

    C:\Users\myComp\AppData\Roaming\npm\node_modules\truffle\node_modules\solc\soljson.js:1
    (function (exports, require, module, filename, dirname) { var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;if(ENVIRONMENT_IS_NODE){if(!Module["print"])Module["print"]=function print(x){process["stdout"].write(x+"\n")};if(!Module["printErr"])Module["printErr"]=function printErr(x){process["stderr"].write(x+"\n")};var nodeFS=require("fs");var nodePath=require("path");Module["read"]=function read(filename,binary){filename=nodePath"normalize";var ret=nodeFS

    SyntaxError: Invalid regular expression: /C:\Users\myComp\AppData\Roaming\npm\node_modules\/: \ at end of pattern
    at new RegExp (<anonymous>)
    at Object.<anonymous> (C:\Users\myComp\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\cli.js:93:1)
    at cb (util.js:353:39)
    at callbackifyOnRejected (util.js:337:10)
    at process._tickCallback (internal/process/next_tick.js:63:19)

    prathyusha12345
    @prathyusha12345
    after creting a contract, I am trying to compile using truffle compile
    Mostafa Ibrahim
    @mostafaibrahim17
    can u use a blockchain to store JSON data?
    Rohan Kapur
    @RohanKapurDEV
    Doesn't seem to stop compiling the contract
    any tips here?
    wereITS
    @wereITS
    guys
    :121:2: Warning: No visibility specified. Defaulting to "public".
    function approveUsers(address _newUser) verifiedSuperAdmin returns (bool) {
    ^
    Spanning multiple lines.
    i keep getting this error
    omarkw1
    @omarkw1_twitter
    Hi.
    I ran a couple of smart contracts on ethfiddle and want to run them on my local machine.
    The contracts are working on your platform but not mine. In short, what version of geth are you using?
    jun-henin
    @jun-henin
    Hi. does someone knows how to use 2 requires with "or" condition?
    should I use require (cond1 || cond2)?
    M'bark Erras
    @MbarkErras
    @wereITS you didn't specify if function should be public or private
    reyen
    @reyen_gitlab
    Hi everyone
    uint[] numbers;
    numbers.push(5);
    numbers.push(10);
    numbers.push(15);
    ERROR: Expected ';' but got '.'
    numbers.push(10);
    adam
    @IMVVVVVIP
    初来乍到多多指教
    Aman Bhargava
    @thenamesmickey
    can anyone explain me the voters solidity program
    realisation
    @realisation
    Can I have remote joint sessions?
    cs19mtech11020
    @cs19mtech11020
    How to call a function in contract from a different account(other than the account from which it is deployed) ?
    Monir Shaker
    @Moniroaf
    any one has good voting blockchain or rating blockchian code no solidity
    Justin
    @gititGoro
    Hi there, ethfiddle seems to have a bug currently: in the js console window, I'm getting CORS issues and when I compile I get
    "Uncaught (in promise) abort("Assertion failed: Cannot call unknown function compileJSON, make sure it is exported"). Build with -s ASSERTIONS=1 for more info."
    XDYB
    @XDYB
    compliling....
    Always show compliing....

    pragma solidity ^0.5.10;

    contract Persion {
    uint public age;
    }

    chungbacki
    @chungbacki
    ???
    Aveesh Shetty
    @Aveesh52
    Hey
    rooat
    @rooat
    Hi
    nishantbhutani
    @nishantbhutani

    pragma solidity^0.5.1;

    contract Courier {
    enum PackageStatus {
    inTransit,
    received,
    cancelled,
    arrived,
    booked
    }

    struct Package {
        uint id;
        uint weight;
        address sender;
        PackageStatus status;
        address receiver;
    }
    uint MULTIPLIER = 1;
    mapping (uint => address payable) public packageCourierId;
    mapping (address => uint) public pendingDeliveryCharge;
    Package[] private _packages;
    event PackageBooked(uint id, address sender, address receiver, uint weight);
    event PackagePicked(uint id, address courier, address sender, address receiver);
    event PackageArrived(uint id, address courier, address sender, address receiver);
    event PackageReceived(uint id, address courier, address sender, address receiver);
    event PackageCancelled(uint id, address courier, address sender, address receiver);
    
    function addPackage(uint  _weight, address payable receiver) public payable returns (uint){
        // Multipler is the numerical factor converting weight to delivery charge
        // we are keeping it as 1 for now.  Value must be equal to
        // weight*MULTIPLIER
    
        require(msg.value == _weight*MULTIPLIER, "Incorrect amount");
    
        uint id = _packages.length;
        _packages.push(Package({
            id: id,
            weight: _weight,
            sender: msg.sender,
            status: PackageStatus.booked,
            receiver: receiver
        }));
    
    
    
        emit PackageBooked(id, msg.sender, receiver, _weight);
        pendingDeliveryCharge[msg.sender] += msg.value;
    
        return id;
    
    }
    
    function pickPackage(uint _id) public{
        // courier calls this function to indicate that he has picked up the package
        Package storage currentPackage = _packages[_id];
        require(currentPackage.status == PackageStatus.booked, "Package is already dispatched");
        currentPackage.status = PackageStatus.inTransit;
    
        packageCourierId[_id] = msg.sender;
    
        emit PackagePicked(_id, msg.sender, currentPackage.sender, currentPackage.receiver);
    
    }
    
    function arrivedPackage(uint _id) public{
        // this function will be called by the courier
        // to indicate to the receiver that he has arrived at his address
    
        Package storage currentPackage = _packages[_id];
        require(currentPackage.status == PackageStatus.inTransit, "Package was not in transit for it to arrive");
        currentPackage.status = PackageStatus.arrived;
    
        emit PackageArrived(_id, msg.sender, currentPackage.sender, currentPackage.receiver);
    }
    
    function receivedPackage(uint _id) public payable returns (bool){
        // this function will be called by the receiver
        // to indicate that he has received the package
    
    
        Package storage currentPackage = _packages[_id];
    
        require(currentPackage.receiver == msg.sender && currentPackage.status == PackageStatus.arrived, "Package arrived at wrong receiver");
        currentPackage.status = PackageStatus.received;
        uint deliveryCharge = currentPackage.weight*MULTIPLIER;
        address payable courier = packageCourierId[_id];
    
    
        if(courier.send(deliveryCharge)){
            pendingDeliveryCharge[currentPackage.sender] -= deliveryCharge;
            emit PackageReceived(_id, courier, currentPackage.sender, currentPackage.receiver);
            return true;
        }
        else {
            return false;
        }
    }
    
    function cancelPackage(uint _id) public returns (bool){
        // only sender of package has the right to cancel Package
        // Funds will be given to courier only if he has picked up the package
        Package storage currentPackage = _packages[_id];
        require(msg.sender == currentPackage.sender && (currentPackage.status == PackageStatus.inTransit || currentPackage.status == PackageStatus.booked), "You do not have authorization to cancel package"
    i am not able to deploy this
    can anyone help
    Jon Doe
    @Scalamanga_gitlab
    Hi, can anyone shed some light on why remix IDE just disappeared in the past few hours?
    pedro-ether
    @pedro-ether
    hi
    any one Here_
    ?
    Hola tengo una duda respecto a la temporalidad en solidiy
    estoy haciendo una funcion para un smart contract que bloque a un usuario si ya paso su periodo de tiempo, que es igual a 30 dias..