Skip to content

Commit e1a3b3c

Browse files
committed
update tests
1 parent db49897 commit e1a3b3c

File tree

4 files changed

+13
-44
lines changed

4 files changed

+13
-44
lines changed

android/app/src/androidTest/java/com/trustwallet/core/app/blockchains/ethereum/TestBarz.kt

Lines changed: 8 additions & 39 deletions
Large diffs are not rendered by default.

src/proto/Barz.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ message ContractAddressInput {
3535
string bytecode = 9;
3636

3737
// PublicKey of the wallet
38-
bytes public_key = 10;
38+
string public_key = 10;
3939
}

swift/Tests/BarzTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import WalletCore
99

1010
class BarzTests: XCTestCase {
1111

12-
// https://testnet.bscscan.com/tx/0x434f5861b7d14b3bf790b57e5eb1be98355d77f528defe732f2994fc9d6d3f2e
12+
// https://testnet.bscscan.com/tx/0x6c6e1fe81c722c0abce1856b9b4e078ab2cad06d51f2d1b04945e5ba2286d1b4
1313
func testInitCode() {
1414
let factoryAddress = "0x3fC708630d85A3B5ec217E53100eC2b735d4f800"
1515
let publicKeyData = Data(hexString: "0x04e6f4e0351e2f556fd7284a9a033832bae046ac31fd529ad02ab6220870624b79eb760e718fdaed7a037dd1d77a561759cee9f2706eb55a729dc953e0d5719b02")!
@@ -32,7 +32,7 @@ class BarzTests: XCTestCase {
3232
$0.diamondInit = diamondInit
3333
$0.facetRegistry = facetRegistry
3434
$0.bytecode = bytecode
35-
$0.publicKey = Data(hexString: "0xB5547FBdC56DCE45e1B8ef75569916D438e09c46")!
35+
$0.publicKey = "0xB5547FBdC56DCE45e1B8ef75569916D438e09c46"
3636
}
3737

3838
XCTAssertEqual(Barz.getCounterfactualAddress(input: try! input.serializedData()), "0xb16Db98B365B1f89191996942612B14F1Da4Bd5f");

tests/chains/Ethereum/BarzTests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
namespace TW::Barz::tests {
1818

19-
// https://testnet.bscscan.com/tx/0x434f5861b7d14b3bf790b57e5eb1be98355d77f528defe732f2994fc9d6d3f2e
20-
TEST(Barz, GetInitCodeFromPublicKey) {
19+
// https://testnet.bscscan.com/tx/0x6c6e1fe81c722c0abce1856b9b4e078ab2cad06d51f2d1b04945e5ba2286d1b4
20+
TEST(Barz, GetInitCode) {
2121
const PublicKey& publicKey = PublicKey(parse_hex("0x041dba683ee34242c993f7588c30099969a1e58e64bdd0657958ced8e4220f69678a77e6fdf4633151105bdb1a9dd419fbd65f7d8b7a39923757534d4a578e9b58"), TWPublicKeyTypeNIST256p1Extended);
2222
// C++
2323
{

0 commit comments

Comments
 (0)