Open giveacake opened 3 years ago
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
This issue now has a funding of 0.05 ETH (161.91 USD @ $3238.23/ETH) attached to it.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Workers have applied to start work.
These users each claimed they can complete the work by 265 years, 3 months from now. Please review their action plans below:
1) namex44 has applied to start work _(Funders only: approve worker | reject worker)_.
Hi, I ll tell you how to call your contract method.
Learn more on the Gitcoin Issue Details page.
Hi, if I'm not wrong this should do the trick ?
contract.methods.transfer("0x48d2241d0be1c07d8d387b911984c9e2e4c177ce").send({"value": amount * 1e18}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Tell me if something doesn't work or if it's not what you are looking for.
Let me try in a while as i am outside now
On Sunday, 22 August 2021, NameX44 @.***> wrote:
Hi, if I'm not wrong this should do the trick ?
contract.methods.transfer("0x48d2241d0be1c07d8d387b911984c9e2e4c177ce").send({"value": amount * 1e18}}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Tell me if something doesn't work or if it's not what you are looking for.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.< https://ci6.googleusercontent.com/proxy/sF8RZUCt5JU3zwi5S-IFILzMe1wFluxPOHgif6d4RN5cftiWXUq-W0CriPZkhtxa7sTtJRh4JiYcSZFMljNlRiZZCoImEsBJIzuO84hbaikuh2DerN2vKPyNR5ZKh7kJvp2U3_4Pwvavj3ExbTREhSlX00KFqcNHJh7eDOHyZHm5qppJQppdybVgCbePZqJEPoIMrzZjen_L2jTyN__qRxJ_KR5KPm_JZ89XOQzF7g=s0-d-e1-ft#https://github.com/notifications/beacon/AVG3KJR2R24RTBNP6ZVAXW3T6CRJ7A5CNFSM5CSSF6M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGXLCJOI.gif>
Take care I edited my code to remove a "}".
Take care I edited my code to remove a "}".
can you provide the link to your code version
contract.methods.transfer("0x48d2241d0be1c07d8d387b911984c9e2e4c177ce").send({"value": amount * 1e18}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
@giveacake this code does not work ?
I am trying now, update you in 10 minutes.
On Sun, 22 Aug 2021 at 21:08, NameX44 @.***> wrote:
contract.methods.transfer("0x48d2241d0be1c07d8d387b911984c9e2e4c177ce").send({"value": amount * 1e18}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
@giveacake https://github.com/giveacake this code does not work ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giveacake/contract/issues/4#issuecomment-903266684, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVG3KJUHRD3XTPY56IJOEJDT6DZF7ANCNFSM5CSSF6MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
contract.methods.transfer("0x48d2241d0be1c07d8d387b911984c9e2e4c177ce").send({"value": amount * 1e18}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
@giveacake this code does not work ?
/var/www/html/nodejs/send_bsc_gac.js:45 contract.methods.transfer("0x48d2241d0be1c07d8d387b911984c9e2e4c177ce").send({"value": amount * 1e18}, function (err, hash) { ^
TypeError: Cannot read property 'transfer' of undefined
at sendToken (/var/www/html/nodejs/send_bsc_gac.js:45:19)
at Object.
Hum could you tell me which version of web3 you use ? and how you run your script in a test env ?
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Hum could you tell me which version of web3 you use ? and how you run your script in a test env ?
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Let me try now
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Start to send 75757.57568181818181819 tokens to 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 (node:15813) Warning: N-API is an experimental feature and could change at any time. Error: unknown account at Object.InvalidResponse (/var/www/html/nodejs/node_modules/web3/lib/web3/errors.js:38:16) at /var/www/html/nodejs/node_modules/web3/lib/web3/requestmanager.js:86:36 at XMLHttpRequest.request.onreadystatechange (/var/www/html/nodejs/node_modules/web3/lib/web3/httpprovider.js:122:7) at XMLHttpRequest.dispatchEvent (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:76:20) at XMLHttpRequest._setReadyState (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:422:14) at XMLHttpRequest._onHttpResponseEnd (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:616:14) at IncomingMessage._response.on (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:568:23) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) undefined
const rawTransaction = {
'from': contractOwner.addr,
'nonce': web3.toHex(web3.eth.getTransactionCount(contractOwner.addr)),
'gasPrice': web3.toHex(gasPrice),
'gasLimit': web3.toHex(gasLimit),
'to': contractAddr,
'value': 0,
'data': contract.methods.transfer(recipient, amount).encodeABI(),
'chainId': 56,
'network_id': 1
};
web3.eth.sendSignedTransaction('0x' + serializedTx.toString('hex'), function (err, hash) {
if (err) {
console.log(err);
}
console.log(hash);
});
hope this was helpful 0xb010ca9Be09C382A9f31b79493bb232bCC319f01
First put method into data of rawTransaction
const rawTransaction = { 'from': contractOwner.addr, 'nonce': web3.toHex(web3.eth.getTransactionCount(contractOwner.addr)), 'gasPrice': web3.toHex(gasPrice), 'gasLimit': web3.toHex(gasLimit), 'to': contractAddr, 'value': 0, 'data': contract.methods.transfer(recipient, amount).encodeABI(), 'chainId': 56, 'network_id': 1 };
and use
web3.eth.sendSignedTransaction('0x' + serializedTx.toString('hex'), function (err, hash) { if (err) { console.log(err); } console.log(hash); });
hope this was helpful 0xb010ca9Be09C382A9f31b79493bb232bCC319f01
var args = process.argv[2];
var gas = process.argv[3];
const Tx = require('ethereumjs-tx');
const Web3 = require('web3');
const web3 = new Web3(new Web3.providers.HttpProvider('https://bsc-dataseed.binance.org/'));
const contractAddr = '0x106eadb44566c32132b027684f9c5b3c26d404b8';
const contractAbi = [{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"_maxTxAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"excludeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"includeAccount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"isExcluded","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"}],"name":"reflect","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tAmount","type":"uint256"},{"internalType":"bool","name":"deductTransferFee","type":"bool"}],"name":"reflectionFromToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxTxPercent","type":"uint256"}],"name":"setMaxTxPercent","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"rAmount","type":"uint256"}],"name":"tokenFromReflection","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFees","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}];
const contractOwner = {
addr: 'PRIV',
key: 'KEY'
};
sendToken(args, '75757.57568181818181819');
function sendToken(receiver, amount) {
console.log(`Start to send ${amount} tokens to ${receiver}`);
const contract = web3.eth.contract(contractAbi).at(contractAddr);
const data = contract.transfer.getData(receiver, amount * 1e18);
const gasPrice = gas * 1e9;
const gasLimit = 420000;
const rawTransaction = {
'from': contractOwner.addr,
'nonce': web3.toHex(web3.eth.getTransactionCount(contractOwner.addr)),
'gasPrice': web3.toHex(gasPrice),
'gasLimit': web3.toHex(gasLimit),
'to': contractAddr,
'value': 0,
'data': contract.methods.transfer(recipient, amount).encodeABI(),
'chainId': 56,
'network_id': 1
};
const privKey = new Buffer(contractOwner.key, 'hex');
const tx = new Tx(rawTransaction);
tx.sign(privKey);
const serializedTx = tx.serialize();
web3.eth.sendSignedTransaction('0x' + serializedTx.toString('hex'), function (err, hash) {
if (err) {
console.log(err);
}
console.log(hash);
});
}
Error message was
Start to send 75757.57568181818181819 tokens to 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 /var/www/html/nodejs/send_bsc_gac.js:36 'data': contract.methods.transfer(recipient, amount).encodeABI(), ^
TypeError: Cannot read property 'transfer' of undefined at sendToken (/var/www/html/nodejs/send_bsc_gac.js:36:28) at Object. (/var/www/html/nodejs/send_bsc_gac.js:20:1) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:188:16) at bootstrap_node.js:609:3
My contract is 0x106eadb44566c32132b027684f9c5b3c26d404b8 (BSC) , need to run the function "transfer" , because instead of sendRawTransaction due to some smart contract configuration. If i run the transfer via bscScan - Write Code, the script work proper. Thus i need do it for NodeJS usage.
Sorry, above where you defined contractAddr add whatever amount you want:
let amount = Web3js.utils.toHex(1e18)
and use contractAddr instead of recipient
'data': contract.methods.transfer(contractAddr, amount).encodeABI(),
Sorry, above where you defined contractAddr add whatever amount you want:
let amount = Web3js.utils.toHex(1e18)
and use contractAddr instead of recipient
'data': contract.methods.transfer(contractAddr, amount).encodeABI(),
possible edit my code in full to prevent error, my amount is normally send using command line args
/usr/bin/nodejs /var/www/html/nodejs/send_bsc_gac.js 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 5
parameter 1 is the address, parameter 2 is the gas fee
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Start to send 75757.57568181818181819 tokens to 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1
(node:15813) Warning: N-API is an experimental feature and could change at any time.
Error: unknown account
at Object.InvalidResponse (/var/www/html/nodejs/node_modules/web3/lib/web3/errors.js:38:16) at /var/www/html/nodejs/node_modules/web3/lib/web3/requestmanager.js:86:36 at XMLHttpRequest.request.onreadystatechange (/var/www/html/nodejs/node_modules/web3/lib/web3/httpprovider.js:122:7) at XMLHttpRequest.dispatchEvent (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:76:20) at XMLHttpRequest._setReadyState (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:422:14) at XMLHttpRequest._onHttpResponseEnd (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:616:14) at IncomingMessage._response.on (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:568:23) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12)
undefined
Are you sure that the following address exists (receiver address and contractowner address) : 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 ??
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Start to send 75757.57568181818181819 tokens to 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 (node:15813) Warning: N-API is an experimental feature and could change at any time. Error: unknown account
at Object.InvalidResponse (/var/www/html/nodejs/node_modules/web3/lib/web3/errors.js:38:16) at /var/www/html/nodejs/node_modules/web3/lib/web3/requestmanager.js:86:36 at XMLHttpRequest.request.onreadystatechange (/var/www/html/nodejs/node_modules/web3/lib/web3/httpprovider.js:122:7) at XMLHttpRequest.dispatchEvent (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:76:20) at XMLHttpRequest._setReadyState (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:422:14) at XMLHttpRequest._onHttpResponseEnd (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:616:14) at IncomingMessage._response.on (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:568:23) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12)
undefined
Are you sure that the following address exists (receiver address and contractowner address) : 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 ??
https://bscscan.com/address/0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Start to send 75757.57568181818181819 tokens to 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 (node:15813) Warning: N-API is an experimental feature and could change at any time. Error: unknown account
at Object.InvalidResponse (/var/www/html/nodejs/node_modules/web3/lib/web3/errors.js:38:16) at /var/www/html/nodejs/node_modules/web3/lib/web3/requestmanager.js:86:36 at XMLHttpRequest.request.onreadystatechange (/var/www/html/nodejs/node_modules/web3/lib/web3/httpprovider.js:122:7) at XMLHttpRequest.dispatchEvent (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:76:20) at XMLHttpRequest._setReadyState (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:422:14) at XMLHttpRequest._onHttpResponseEnd (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:616:14) at IncomingMessage._response.on (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:568:23) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12)
undefined
Are you sure that the following address exists (receiver address and contractowner address) : 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 ??
https://bscscan.com/address/0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1
and the contract owner address is the good one and exists ?
Yes , everying is fine if I use rawSendTransaction.
On Mon, 23 Aug 2021 at 19:18, NameX44 @.***> wrote:
I think that you are using version 0.20.x.
Could you try this :
contract.transfer.sendTransaction(receiver, amount * 1e18, {from: contractOwner.addr}, function (err, hash) { if (err) { console.log(err); } console.log(hash); });
Start to send 75757.57568181818181819 tokens to 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 (node:15813) Warning: N-API is an experimental feature and could change at any time. Error: unknown account
at Object.InvalidResponse (/var/www/html/nodejs/node_modules/web3/lib/web3/errors.js:38:16)
at /var/www/html/nodejs/node_modules/web3/lib/web3/requestmanager.js:86:36
at XMLHttpRequest.request.onreadystatechange (/var/www/html/nodejs/node_modules/web3/lib/web3/httpprovider.js:122:7)
at XMLHttpRequest.dispatchEvent (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:76:20)
at XMLHttpRequest._setReadyState (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:422:14)
at XMLHttpRequest._onHttpResponseEnd (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:616:14)
at IncomingMessage._response.on (/var/www/html/nodejs/node_modules/xhr2/lib/xhr2.js:568:23)
at emitNone (events.js:111:20)
at IncomingMessage.emit (events.js:208:7)
at endReadableNT (_stream_readable.js:1064:12)
undefined
Are you sure that the following address exists (receiver address and contractowner address) : 0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1 ??
https://bscscan.com/address/0x33a3606b7fe2ae50a7ced2b4acc9c04d707d7dc1
and the contract owner address is the good one and exists ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giveacake/contract/issues/4#issuecomment-903675295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVG3KJTTFHEF7JHSWONKTPTT6IVALANCNFSM5CSSF6MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
So I think I don't get what you really needs.
In the node script you already call the transfer function of the contract via a signed transaction using sendRawTransaction.
As I see in the _transfer method in the GIVEACAKE.sol file, if you set the contract owner address as transaction sender, it will be exclude from fee if this address is registered in the _isExcludedFromFees mapping.
So it should just be a transaction configuration problem no ?
If I invoke the transfer method, the exclude fee work fine. If I use sendRawTransaction, the exclude fee fail.
On Mon, 23 Aug 2021 at 19:39, NameX44 @.***> wrote:
So I think I don't get what you really needs.
In the node script you already call the transfer function of the contract via a signed transaction using sendRawTransaction.
As I see in the _transfer method in the GIVEACAKE.sol file, if you set the contract owner address as transaction sender, it will be exclude from fee if this address is registered in the _isExcludedFromFees mapping.
So it should just be a transaction configuration problem no ?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giveacake/contract/issues/4#issuecomment-903687313, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVG3KJUI2LTR6NAZETQCLU3T6IXNLANCNFSM5CSSF6MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Could you give me a transaction id where it fails with the node script ?
if we could text on discord or telegram it should be easier.
Hi NameX44,
You can reach me on PerrierJouet8
Thanks
On Tue, 24 Aug 2021 at 03:18, NameX44 @.***> wrote:
if we could text on discord or telegram it should be easier.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/giveacake/contract/issues/4#issuecomment-904050505, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVG3KJRW6QV4ZOO5XI72Q2LT6KNHZANCNFSM5CSSF6MQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Workers have applied to start work.
These users each claimed they can complete the work by 265 years, 2 months from now. Please review their action plans below:
1) developerfred has applied to start work _(Funders only: approve worker | reject worker)_.
this solution here: https://gist.github.com/developerfred/f9f443c3f8e18caf5b3eb10d000cd7b2
using Ethers.js [workaround it is necessary to change the contract]
Learn more on the Gitcoin Issue Details page.
Issue Status: 1. Open 2. Started 3. Submitted 4. Done
Work for 0.1 ETH (322.44 USD @ $3224.36/ETH) has been submitted by:
My contract is 0x106eadb44566c32132b027684f9c5b3c26d404b8 Contract name GIVE A CAKE, BSC
Example of call I made through bscScan, Write Contract https://bscscan.com/tx/0xd5e8099831ea95c441215b2d9a553664f40bb1069d4b9281d4de2791bdde0b8b
amount (uint256) 66666666666666666666666
Because my wallet "Creator of the contract" is excludedFee (true) so I run the function Transfer will exclude me from the fees, but if I use the below code to send token, it will not take into account "excludedFee"
I wanna know how do I change the code below to perform a transfer Function instead of rawTransaction. Below is NodeJS Script
https://github.com/giveacake/contract/blob/main/SEND_SCRIPT.js