Compare commits

...

2 Commits

Author SHA1 Message Date
Moon Man cb9898a4bd change xj9 url 2023-01-30 19:35:16 -05:00
Moon Man 791ca05333 override transfer from 2023-01-30 15:33:49 -05:00
2 changed files with 10 additions and 3 deletions

View File

@ -41,7 +41,7 @@ contract CurioERC1155Wrapper is ERC1155, ERC1155Metadata_URI, ERC1155Metadata, E
create(1, 0x2f873FCc3F4B84E9A62AFf28E9a897ce1BC8814B, "https://shitposter.club");
create(2, 0x13a9914Ad2e0be57eB2Abb3E159021Eab6D7a80E, "https://tuusin.misono-ya.info/users/hakui");
create(3, 0xdeCAa5B6901dc465FBf90f9C0c70c96132aF51Db, "https://shitposter.club/users/augustus");
create(4, 0xc1de7E95663FB3A0e8F8C6E6a64297d7AbcBF7f7, "https://mk.toast.cafe/@xjix");
create(4, 0xc1de7E95663FB3A0e8F8C6E6a64297d7AbcBF7f7, "https://xj-ix.luxe/bin/fedi");
create(5, 0xB70F9A809693B8c6a4c331342B96F15252521dC7, "https://varishangout.net/users/nepfag");
create(6, 0x3f2592136d90dE35615A409B4fe710B3764366F4, "https://shitposter.club/dokidoki@pl.smuglo.li");
create(7, 0x5e7318f75b177a0F27A31CB20bB26bd0C049620c, "https://twitter.com/sonyasupposedly");

View File

@ -10,13 +10,20 @@ module.exports = async (callback) => {
const [account,] = await web3.eth.getAccounts();
const currentBalance = BigInt(await wrapper.balanceOf(account, nftId1));
const from = process.argv[9] ? process.argv[9] : account;
if (from !== account) {
console.log(`Overrode from address`);
const approved = await wrapper.isApprovedForAll(from, account);
console.log(`Approved? ${approved ? "yes" : "no"}`);
}
const currentBalance = BigInt(await wrapper.balanceOf(from, nftId1));
console.log(`Current balance: ${currentBalance}`);
if (currentBalance >= quantity1) {
console.log("Executing transfer transaction...");
try {
const result = await wrapper.safeTransferFrom(account, to, nftId1, quantity1.toString(), []);
const result = await wrapper.safeTransferFrom(from, to, nftId1, quantity1.toString(), []);
console.log(`Transaction: ${result.tx}`);
}
catch (e) {