codedamn

Fixed (byte) Size Array

Created by Kshitij about a year ago

0

No description provided

7 Comments

    0

    I am very confused with this one, isn't the hexaDecimal Value of a = 10?

    @kishorevb

    Kishore VB

    @kishorevb

    0

    Don't we have to use square brackets in byte size arrays?

    @priyanshrai

    Priyansh Rai

    @priyanshrai

    0

    why this is showing 0:bytes3: 0x616263 when i give b3=" b "; ??????

    @nikhil62755443

    Nikhil Mukati

    @nikhil62755443

    0

    i was confused with previous lab session

    0

    in hexadecimal isn't a = 10?

    @guily

    Mehul Ratra

    @guily

    0

    I am not able to set the value for the variable by using function. When I am running the task it's showing task passed but when I am running the same code in Remix IDE i am not able to set the value....but no error is showing...

    @ak619

    Aravinth kumar

    @ak619

    0

    //SPDX-License-Identifier: GPL-3.0

    pragma solidity >=0.5.0 <0.9.0;

    contract FixedSizeArray { bytes1 public b1 = "a";

    function setBytesArray(bytes1 str) public {
        b1 = str;
    }
    function getByteValue() public view returns(bytes1) {
        return b1;
    }
    

    }

    This what my code showing error in Remix IDE but got passed in codedamn playground

    @ak619

    Aravinth kumar

    @ak619

Your comment