From 1815f13f0188d5a83d0a2bcb1dafc58177b2034d Mon Sep 17 00:00:00 2001 From: Charlie Chen Date: Wed, 3 Apr 2024 13:21:47 -0500 Subject: [PATCH] format testdata and clean up empty lines --- e2e/e2etests/test_bitcoin_withdraw_invalid.go | 2 -- ...573fda52c8fdbba5e78152aeb4432286836a7.json | 24 ++++++++++++++++++- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/e2e/e2etests/test_bitcoin_withdraw_invalid.go b/e2e/e2etests/test_bitcoin_withdraw_invalid.go index 88c1df95c1..39ff5e195b 100644 --- a/e2e/e2etests/test_bitcoin_withdraw_invalid.go +++ b/e2e/e2etests/test_bitcoin_withdraw_invalid.go @@ -55,10 +55,8 @@ func WithdrawToInvalidAddress(r *runner.E2ERunner, amount *big.Int) { } receipt = utils.MustWaitForTxReceipt(r.Ctx, r.ZEVMClient, tx, r.Logger, r.ReceiptTimeout) if receipt.Status == 1 { - fmt.Println("WithdrawToInvalidAddress panicing") panic(fmt.Errorf("withdraw receipt status is successful for an invalid BTC address")) } - fmt.Printf("WithdrawToInvalidAddress receipt status: %d\n", receipt.Status) // stop mining stop <- struct{}{} } diff --git a/zetaclient/testdata/btc/chain_8332_msgtx_781fc8d41b476dbceca283ebff9573fda52c8fdbba5e78152aeb4432286836a7.json b/zetaclient/testdata/btc/chain_8332_msgtx_781fc8d41b476dbceca283ebff9573fda52c8fdbba5e78152aeb4432286836a7.json index 2d5708f83d..13789f13b1 100644 --- a/zetaclient/testdata/btc/chain_8332_msgtx_781fc8d41b476dbceca283ebff9573fda52c8fdbba5e78152aeb4432286836a7.json +++ b/zetaclient/testdata/btc/chain_8332_msgtx_781fc8d41b476dbceca283ebff9573fda52c8fdbba5e78152aeb4432286836a7.json @@ -1 +1,23 @@ -{"Version":1,"TxIn":[{"PreviousOutPoint":{"Hash":[88,35,68,215,98,226,80,135,144,112,176,41,10,204,196,243,171,206,47,130,190,82,88,31,234,63,168,65,219,15,248,81],"Index":1},"SignatureScript":"SDBFAiEAtm10q/gt84o5QCkWsxouad5aqiEDgBd3h3ci/8tuDl4CIB9wKaSz2HDRhPKwkoXBbYqZwTD+8fhiZOolJcwvgV49ASED25w7Nl3+PHENu2OrUD2EmDvsdylmoWe0hSDOMtQvj04=","Witness":null,"Sequence":268435456}],"TxOut":[{"Value":1425000,"PkScript":"qRRdKyXqq2FtT8BTLay8+A2Un6cUTIc="},{"Value":19064706,"PkScript":"dqkUk2fpBSIxBUekNfA/gxxYw1RZ3KGIrA=="}],"LockTime":0} +{ + "Version": 1, + "TxIn": [ + { + "PreviousOutPoint": { + "Hash": [ + 88, 35, 68, 215, 98, 226, 80, 135, 144, 112, 176, 41, 10, 204, 196, + 243, 171, 206, 47, 130, 190, 82, 88, 31, 234, 63, 168, 65, 219, 15, + 248, 81 + ], + "Index": 1 + }, + "SignatureScript": "SDBFAiEAtm10q/gt84o5QCkWsxouad5aqiEDgBd3h3ci/8tuDl4CIB9wKaSz2HDRhPKwkoXBbYqZwTD+8fhiZOolJcwvgV49ASED25w7Nl3+PHENu2OrUD2EmDvsdylmoWe0hSDOMtQvj04=", + "Witness": null, + "Sequence": 268435456 + } + ], + "TxOut": [ + { "Value": 1425000, "PkScript": "qRRdKyXqq2FtT8BTLay8+A2Un6cUTIc=" }, + { "Value": 19064706, "PkScript": "dqkUk2fpBSIxBUekNfA/gxxYw1RZ3KGIrA==" } + ], + "LockTime": 0 +}