Skip to content

Commit

Permalink
Fix call to scheduleAfter in runtime upgrade (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwhit authored and atodorov committed Apr 21, 2023
1 parent f622f84 commit 69e9c60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/js/src/runtimeUpgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,7 @@ async function doRuntimeUpgrade(
// schedule the upgrade
await new Promise<void>((resolve, reject) => {
const unsubscribe = api.tx.sudo
// eslint-disable-next-line @typescript-eslint/naming-convention
.sudo(api.tx.scheduler.scheduleAfter(scheduleDelay, null, 0, { Value: api.tx.system.setCode(hexBlob) }))
.sudo(api.tx.scheduler.scheduleAfter(scheduleDelay, null, 0, api.tx.system.setCode(hexBlob)))
.signAndSend(keyring, { nonce: -1 }, (result) => {
const finish = (fn: () => void) => {
unsubscribe
Expand Down

0 comments on commit 69e9c60

Please sign in to comment.