@@ -29,11 +29,14 @@ var (
29
29
contractAbi = string (whoops .Must (os .ReadFile ("testdata/sample-abi.json" )))
30
30
contractBytecodeStr = string (whoops .Must (os .ReadFile ("testdata/sample-bytecode.out" )))
31
31
32
- sampleTx1RawBytes = common .FromHex (string (whoops .Must (os .ReadFile ("testdata/sample-tx-raw.hex" ))))
33
-
34
- sampleTx1 = func () * ethcoretypes.Transaction {
32
+ // Keeping the upload_smart_contract test on the old ABI until compass becomes more stable as
33
+ // updates to this test harness are tedious.
34
+ uscAbi = string (whoops .Must (os .ReadFile ("testdata/usc-abi.json" )))
35
+ uscBytecodeStr = string (whoops .Must (os .ReadFile ("testdata/usc-bytecode.out" )))
36
+ uscTx1RawBytes = common .FromHex (string (whoops .Must (os .ReadFile ("testdata/usc-tx-raw.hex" ))))
37
+ uscTx1 = func () * ethcoretypes.Transaction {
35
38
tx := new (ethcoretypes.Transaction )
36
- whoops .Assert (tx .UnmarshalBinary (sampleTx1RawBytes ))
39
+ whoops .Assert (tx .UnmarshalBinary (uscTx1RawBytes ))
37
40
return tx
38
41
}()
39
42
@@ -163,7 +166,9 @@ var _ = g.Describe("attest router", func() {
163
166
})
164
167
165
168
g .BeforeEach (func () {
166
- consensusMsg = & types.Message {}
169
+ consensusMsg = & types.Message {
170
+ AssigneeRemoteAddress : "0x28E9e9bfedEd29747FCc33ccA25b4B75f05E434B" ,
171
+ }
167
172
})
168
173
169
174
g .JustBeforeEach (func () {
@@ -183,6 +188,7 @@ var _ = g.Describe("attest router", func() {
183
188
PublicAccessData : & consensustypes.PublicAccessData {
184
189
ValsetID : 1 ,
185
190
},
191
+ GasEstimate : 1000 ,
186
192
}
187
193
})
188
194
@@ -372,6 +378,11 @@ var _ = g.Describe("attest router", func() {
372
378
HexContractAddress : "0x51eca2efb15afacc612278c71f5edb35986f172f" ,
373
379
Abi : []byte (contractAbi ),
374
380
Payload : common .FromHex (slcPayload ),
381
+ Fees : & types.SubmitLogicCall_Fees {
382
+ RelayerFee : 1 ,
383
+ CommunityFee : 2 ,
384
+ SecurityFee : 3 ,
385
+ },
375
386
},
376
387
}
377
388
})
@@ -542,7 +553,7 @@ var _ = g.Describe("attest router", func() {
542
553
543
554
g .When ("message is UploadSmartContract" , func () {
544
555
g .BeforeEach (func () {
545
- execTx = sampleTx1
556
+ execTx = uscTx1
546
557
proof := whoops .Must (codectypes .NewAnyWithValue (& types.TxExecutedProof {SerializedTX : whoops .Must (execTx .MarshalBinary ())}))
547
558
evidence = []* consensustypes.Evidence {
548
559
{
@@ -561,8 +572,8 @@ var _ = g.Describe("attest router", func() {
561
572
consensusMsg .Action = & types.Message_UploadSmartContract {
562
573
UploadSmartContract : & types.UploadSmartContract {
563
574
Id : 1 ,
564
- Abi : contractAbi ,
565
- Bytecode : common .FromHex (contractBytecodeStr ),
575
+ Abi : uscAbi ,
576
+ Bytecode : common .FromHex (uscBytecodeStr ),
566
577
},
567
578
}
568
579
address , err := sdk .ValAddressFromBech32 ("cosmosvaloper1pzf9apnk8yw7pjw3v9vtmxvn6guhkslanh8r07" )
0 commit comments