You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harmony grants checkout with MetaMask (web3modal) (#10558)
* update harmony_extension.js
* use web3.currentProvider
* remove unused libs + d.r.y
* use switchChain function in #10564
* use rpc method to broadcast tx
_alert({message: `Account needs to have more than ${amount} ONE in shard 0 for payout`},'danger');
23
-
harmony_utils.logoutHarmonyExtension(harmonyExt);
24
19
return;
25
20
}
26
21
27
-
// step 4: payout
28
-
harmony_utils.transfer(
29
-
hmy,
30
-
harmonyExt,
31
-
from_address,
32
-
to_address,
33
-
amount
34
-
).then(txn=>{
35
-
if(txn){
36
-
callback(null,from_address,txn);
37
-
}else{
38
-
callback('error in signing transaction');
39
-
}
40
-
}).catch(err=>callback(err));
22
+
// Payout
23
+
// Gas limit as indicated here: https://docs.harmony.one/home/general/wallets/browser-extensions-wallets/metamask-wallet/sending-and-receiving#sending-a-regular-transaction
0 commit comments