#StackBounty: #solidity #remix Possible Library Linkage problem on deployed contract at `remix-alpha`, that actually works on JavaScrip…

Bounty: 100

I guess this error is related to following closed issue, which still exists. The issue closed recommending us to use remix-alpha, but remix-alpha still has the same error or I might be doing something wrong.

=> Is there anyone else facing with similar problem?

Deployed file names:

Lib.sol         # Library contract //uses around 1,600,000 GAS to be deployed.
myContract.sol  # Main contract    //uses around 3,400,000 GAS to be deployed.

I have tested my contract and it works perfectly fine on populus and remix’s JavaScript VM mode. So there is no issue on the contract’s code and its implementation.

But whenever I deployed my contract on the remix-alpha; and tested my code on the deployed code as on Web3 Provide mode, if there is a call to Library function, the function call crashes (thrown) at that point.

I really don’t know what causes this problem. This error is pretty annoying costing me hours and ether for each deployment, and facing contract does not work as it should be.

As simplified, I have an emptied Library function call:

Lib.sol:

/* Simple Library function */
function constructCluster() public {

}

When there is a call to that function; the function call is reverted().

myContract.sol: cluster.constructCluster(); //Contract is reverted()

[Q] Is there anyway to fix this issue? I am out ot options. The only solution comes to my mind to merge main contact and Library contract but when I merge them I face with following error: SolcError: InternalCompilerError: Static memory load of more than 32 bytes requested.

=> Instead of using remix browser, if I deploy my contract from geth-console would it help to fix the problem?


Please note that: I have tried shorten the contract’s name and deploy at http://remix.ethereum.org/. But the exact same contract gives same linkage problem on JavaScript VM mode at remix.ethereum.org that actually works at https://ethereum.github.io/browser-solidity ‘s JavaScript VM mode.


Get this bounty!!!

#StackBounty: #solidity #inheritance Solidity and multiple inheritance

Bounty: 50

I’m attempting to understand how solidity resolves multiple inheritance. As explained in the docs, Solidity uses C3 linearization. The relation between my classes is displayed on the image below:
Inheritance graph

I want to understand in which order super is working when called from SampleCrowdsale. I ran the C3 linearization algorithm manually as well as using this tool. The results I get:

1) SampleCrowdsale
2) CappedCrowdsale
3) RefundableCrowdsale
4) FinalizableCrowdsale
5) TimedCrowdsale
6) MintedCrowdsale
7) IndividuallyCappedCrowdsale
8) TieredCrowdsale
9) Crowdsale
10) Ownable

Then I tried to confirm my findings empirically. I added a method log to every contract in the inheritance chain, the method fires an event with the contract name. My findings using this method differ from the analytical approach:

1) SampleCrowdsale
2) TieredCrowdsale
3) IndividuallyCappedCrowdsale
4) MintedCrowdsale
5) RefundableCrowdsale
6) FinalizableCrowdsale
7) TimedCrowdsale
8) CappedCrowdsale
9) Crowdsale
10) Ownable

Can anyone explain to me how to solve this?


Get this bounty!!!

#StackBounty: #solidity #truffle #javascript #nodejs Truffle Framework "Block-scoped declarations not yet supported outside strict…

Bounty: 50

I have tried to install and use the Truffle Framework through npm on Elementary OS (Ubuntu distribution). There where no obvious issues with the installation but when running any command e.g. “truffle init” or “truffle unbox metacoin” I get the error:

/usr/local/lib/node_modules/truffle/build/cli.bundled.js:64601
!function(e,t){ true?module.exports=t():"function"==typeof define&&define.amd?define("ganache",[],t):"object"==typeof exports?exports.ganache=t():e.ganache=t()}(global,function(){return function(e){var t={};function a(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,a),r.l=!0,r.exports}return a.m=e,a.c=t,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},a.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a.w={},a(a.s=1222)}([function(e,t,a){try{var n=a(1);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=a(1208)}},function(e,t){e.exports=__webpack_require__(3)},function(e,t){e.exports=__webpack_require__(0)},function(e,t

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3

I assume this is some sort of compatibility issue with ES5/6. But I am unsure as to why this would happen with a fresh install.


Get this bounty!!!

#StackBounty: #solidity #testing #erc-721 Conformance test suite for ERC-721 smart contracts

Bounty: 50

Entities like Open Zeppelin offer “well tested and audited” (I’m paraphrasing) open source Solidity code for common patterns such as ownership, ERC20 tokens, etc.

Are there any such entities (or just normal developers) who are, in the same vein as Open Zeppelin, open sourcing rigorous tests for code that is supposed to comply with the popular ERC standards?

Specifically, I’ve written some ERC721 compliant code, and I’m wondering if there are really good truffle test modules for this code. Would probably be more rigorous than what I’d write, and would definitely save me a lot of time and effort.


Get this bounty!!!

#StackBounty: #solidity #go-ethereum #string Send request failed { code: -32602, message: 'invalid argument 0: json: cannot unmarsh…

Bounty: 50

I am new to ethereum and deploying my first contract with simple method getting following error:

[2018-03-24 11:08:14.364] [ERROR] ipcProviderBackend - Send request failed { code: -32602,
  message: 'invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash' }

Following is the contract method in solidity that i am calling:

function testContract(string title,string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,
                           uint _startingPrice,
                           uint _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) public returns (bool k) {


        test=title;
        return true;
    }

Here ,
test is the global variable of type string.

Note: I have deployed this contract in the private network and this contract from the mist browser

Following are the version details of geth:

Geth
Version: 1.7.3-stable
Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.9


Get this bounty!!!

#StackBounty: #solidity #go-ethereum #string Send request failed { code: -32602, message: 'invalid argument 0: json: cannot unmarsh…

Bounty: 50

I am new to ethereum and deploying my first contract with simple method getting following error:

[2018-03-24 11:08:14.364] [ERROR] ipcProviderBackend - Send request failed { code: -32602,
  message: 'invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash' }

Following is the contract method in solidity that i am calling:

function testContract(string title,string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,
                           uint _startingPrice,
                           uint _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) public returns (bool k) {


        test=title;
        return true;
    }

Here ,
test is the global variable of type string.

Note: I have deployed this contract in the private network and this contract from the mist browser

Following are the version details of geth:

Geth
Version: 1.7.3-stable
Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.9


Get this bounty!!!

#StackBounty: #solidity #go-ethereum #string Send request failed { code: -32602, message: 'invalid argument 0: json: cannot unmarsh…

Bounty: 50

I am new to ethereum and deploying my first contract with simple method getting following error:

[2018-03-24 11:08:14.364] [ERROR] ipcProviderBackend - Send request failed { code: -32602,
  message: 'invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash' }

Following is the contract method in solidity that i am calling:

function testContract(string title,string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,
                           uint _startingPrice,
                           uint _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) public returns (bool k) {


        test=title;
        return true;
    }

Here ,
test is the global variable of type string.

Note: I have deployed this contract in the private network and this contract from the mist browser

Following are the version details of geth:

Geth
Version: 1.7.3-stable
Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.9


Get this bounty!!!

#StackBounty: #solidity #go-ethereum #string Send request failed { code: -32602, message: 'invalid argument 0: json: cannot unmarsh…

Bounty: 50

I am new to ethereum and deploying my first contract with simple method getting following error:

[2018-03-24 11:08:14.364] [ERROR] ipcProviderBackend - Send request failed { code: -32602,
  message: 'invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash' }

Following is the contract method in solidity that i am calling:

function testContract(string title,string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,
                           uint _startingPrice,
                           uint _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) public returns (bool k) {


        test=title;
        return true;
    }

Here ,
test is the global variable of type string.

Note: I have deployed this contract in the private network and this contract from the mist browser

Following are the version details of geth:

Geth
Version: 1.7.3-stable
Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.9


Get this bounty!!!

#StackBounty: #solidity #go-ethereum #string Send request failed { code: -32602, message: 'invalid argument 0: json: cannot unmarsh…

Bounty: 50

I am new to ethereum and deploying my first contract with simple method getting following error:

[2018-03-24 11:08:14.364] [ERROR] ipcProviderBackend - Send request failed { code: -32602,
  message: 'invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash' }

Following is the contract method in solidity that i am calling:

function testContract(string title,string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,
                           uint _startingPrice,
                           uint _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) public returns (bool k) {


        test=title;
        return true;
    }

Here ,
test is the global variable of type string.

Note: I have deployed this contract in the private network and this contract from the mist browser

Following are the version details of geth:

Geth
Version: 1.7.3-stable
Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.9


Get this bounty!!!

#StackBounty: #solidity #go-ethereum #string Send request failed { code: -32602, message: 'invalid argument 0: json: cannot unmarsh…

Bounty: 50

I am new to ethereum and deploying my first contract with simple method getting following error:

[2018-03-24 11:08:14.364] [ERROR] ipcProviderBackend - Send request failed { code: -32602,
  message: 'invalid argument 0: json: cannot unmarshal non-string into Go value of type common.Hash' }

Following is the contract method in solidity that i am calling:

function testContract(string title,string _description,
                           address _contractAddressOfAsset,
                           string _recordIdOfAsset,
                           uint _deadline,
                           uint _startingPrice,
                           uint _reservePrice,
                           uint _distributionCut,
                           address _distributionCutAddress) public returns (bool k) {


        test=title;
        return true;
    }

Here ,
test is the global variable of type string.

Note: I have deployed this contract in the private network and this contract from the mist browser

Following are the version details of geth:

Geth
Version: 1.7.3-stable
Git Commit: 4bb3c89d44e372e6a9ab85a8be0c9345265c763a
Architecture: amd64
Protocol Versions: [63 62]
Network Id: 1
Go Version: go1.9
Operating System: linux
GOPATH=
GOROOT=/usr/lib/go-1.9


Get this bounty!!!