Compare commits

..

No commits in common. "c29b0a0336c58afb9dc7220d61cd27d369651945" and "31f0c6f84ee507ee331277a99aab3a508c61c861" have entirely different histories.

3 changed files with 5 additions and 22 deletions

View File

@ -53,12 +53,12 @@ contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI, ERC1155Metadata, O
return string(abi.encodePacked("data:application/json;base64,", Base64.encode(abi.encodePacked(
'{',
'"name":"', curio.name(), '",',
'"description":"', curio.description(), '",',
'"image":"ipfs://', curio.ipfs_hash(), '",',
'"name":"', curio.name, '",',
'"description":"', curio.description, '",',
'"image":"ipfs://', curio.ipfs_hash, '",',
'"external_url":"', urls[_id], '",',
'"properties":{',
'"symbol":"', curio.symbol(), '"',
'"symbol":"', curio.symbol, '"',
'}',
'}'
))));

View File

@ -1,17 +0,0 @@
const Wrapper = artifacts.require("CurioERC1155Wrapper");
module.exports = async (callback) => {
console.log("Start.");
const wrapper = await Wrapper.deployed();
const dataURI = await wrapper.uri(1);
console.log(`Data URI: ${dataURI}`);
const data = dataURI.split(',')[1];
const raw = Buffer.from(data, "base64").toString("utf8");
console.log(JSON.stringify(JSON.parse(raw), null, 4));
console.log("Done.");
callback();
}

View File

@ -55,7 +55,7 @@ module.exports = {
ubiq: {
provider: () => new HDWalletProvider(mnemonic, "https://rpc.octano.dev"),
gas: 5500000,
network_id: 8,
network_id: 88,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true