Unverified Commit ad95a903 authored by Shawn Tabrizi's avatar Shawn Tabrizi
Browse files

main fixes

parent a4d5b71f
......@@ -58,8 +58,8 @@ export function parseContributorAccount(
const network =
networkInput in validNetworks
? validNetworks[networkInput as keyof typeof validNetworks]
networkInput.toLowerCase() in validNetworks
? validNetworks[networkInput.toLowerCase() as keyof typeof validNetworks]
: undefined
if (!network) {
throw new Error(
......@@ -111,7 +111,7 @@ export async function tipUser(
/* TODO before submitting, check tip does not already exist via a storage query.
TODO potentially prevent duplicates by also checking for reasons with the other sizes. */
const unsub = await api.tx.tips
.reportAwesome(reason, botTipAccount.address)
.reportAwesome(reason, contributor.account)
.signAndSend(botTipAccount, (result: SubmittableResult) => {
bot.log(`Current status is ${result.status.toString()}`)
if (result.status.isInBlock) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment