Skip to content

Commit db15072

Browse files
author
Hugh Cunningham
committed
ensures that handler finishes before executing finally in withStateRoot
1 parent 4387490 commit db15072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ironfish/src/evm/stateManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class IronfishStateManager extends DefaultStateManager {
3838
}
3939

4040
try {
41-
return handler()
41+
return await handler()
4242
} finally {
4343
await this.setStateRoot(currentRoot)
4444
}

0 commit comments

Comments
 (0)