Clone factory and constructor arguments

In my project I’m using a Clone Factory: https://github.com/optionality/clone-factory/tree/master/contracts function createClone(address target) external returns (address result) { bytes20 targetBytes = bytes20(target); assembly { let clone := mload(0x40) mstore(clone, 0x3d602d80600a3d3981f3363d3d373d3d3d363d73000000000000000000000000) mstore(add(clone, 0x14), targetBytes) mstore(add(clone, 0x28), 0x5af43d82803e903d91602b57fd5bf30000000000000000000000000000000000) result := create(0, clone, 0x37) } addr = result; } It works for contracts without constructor or contracts with empty…

Details

Display custom posts, ordered by most commented, without duplicates

I would like to display custom posts in template, they have to be ordered by most commented and without duplicates on the same page. This is the code that I have for now. $args = array( ‘post_type’ => ‘portfolio’, ‘status’ => ‘approve’, ‘post_status’ => ‘publish’, ‘number’ => 28, ‘order’ => ‘ASC’, ‘orderby’ => ‘comment_count’, );…

Details