Unverified Commit 5dc2cc2d authored by Shawn Tabrizi's avatar Shawn Tabrizi Committed by GitHub
Browse files

Merge pull request #27 from paritytech/shawntabrizi-fixes

Fix Bot
parents a4d5b71f f892ded8
Pipeline #205463 waiting for manual action with stages
in 2 minutes and 31 seconds
......@@ -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.address)
.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