We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 596f0b4 commit 2a1a30bCopy full SHA for 2a1a30b
examples/run-blockchain/index.ts
@@ -82,19 +82,6 @@ async function setupPreConditions(vm: VM, testData: any) {
82
await psm.getStateRoot()
83
}
84
85
-async function setCode(account: Account, state: any, code: Buffer) {
86
- return new Promise((resolve, reject) => {
87
- account.setCode(state, code, (err, codeHash) => {
88
- if (err) {
89
- reject(err)
90
- return
91
- }
92
-
93
- resolve(codeHash)
94
- })
95
96
-}
97
98
async function setGenesisBlock(blockchain: any, hardfork: string) {
99
const genesisBlock = new Block({ hardfork })
100
genesisBlock.header = new BlockHeader(testData.genesisBlockHeader, { hardfork })
0 commit comments