From e6187aa5f39d5c9964ccadf33d3ff03cc7526c20 Mon Sep 17 00:00:00 2001 From: andri lim Date: Tue, 20 Aug 2019 18:08:09 +0700 Subject: [PATCH] uncomment commented test case in test_op_custom.nim --- tests/test_op_custom.nim | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/tests/test_op_custom.nim b/tests/test_op_custom.nim index 3bdeccd64..2eb7540ea 100644 --- a/tests/test_op_custom.nim +++ b/tests/test_op_custom.nim @@ -6,16 +6,6 @@ import suite "Custom Opcodes Test": let (blockNumber, chainDB) = initDatabase() - var acc: EthAddress - hexToByteArray("0xc669eaad75042be84daaf9b461b0e868b9ac1871", acc) - var - parent = chainDB.getBlockHeader(blockNumber - 1) - stateDB = newAccountStateDB(chainDB.db, parent.stateRoot, false) - - stateDB.setBalance(acc, 1000.u256) - parent.stateRoot = stateDB.rootHash - chainDB.setHead(parent, true) - assembler: # CALLDATASIZE OP title: "CALLDATASIZE_1" data: @@ -194,7 +184,7 @@ suite "Custom Opcodes Test": code: Address Balance - stack: "0x000000000000000000000000000000000000000000000000cff56a1b273a83e8" + stack: "0x000000000000000000000000000000000000000000000000cff56a1b273a8000" assembler: # ORIGIN OP title: "ORIGIN_1" @@ -250,14 +240,12 @@ suite "Custom Opcodes Test": stack: "0x02" memory: "0x0000000000000000000000000000000000000000000000000000000000000201" -#[ assembler: # BLOCKHASH OP title: "BLOCKHASH_1" code: - Push1 "0x01" + Push2 "0xb864" # 47204, parent header number Blockhash - stack: "0xC89EFDAA54C0F20C7ADF612882DF0950F5A951637E0307CDCB4C672F298B8BC6" -]# + stack: "0xa85842a20755232169db76c5bd4ad4672c1551fca4b07d0bd139cd0e6fef684d" # current block coinbase/miner assembler: # COINBASE OP