Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ publishing {
pom {
name = 'fisco-bcos'
description = 'fisco-bcos java-sdk'
url = 'http://www.fisco-bcos.org'
url = 'https://github.com/FISCO-BCOS/java-sdk'

licenses {
license {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class AssembleEIP1559TransactionService extends AssembleTransactionService {

AssembleEIP1559TransactionService(Client client) {
public AssembleEIP1559TransactionService(Client client) {
super(client);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package org.fisco.bcos.sdk.v3.test.transaction.manager;

import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import org.fisco.bcos.sdk.v3.client.Client;
import org.fisco.bcos.sdk.v3.crypto.CryptoSuite;
import org.fisco.bcos.sdk.v3.model.CryptoType;
import org.fisco.bcos.sdk.v3.transaction.manager.transactionv1.AssembleEIP1559TransactionService;
import org.fisco.bcos.sdk.v3.transaction.manager.transactionv1.AssembleTransactionService;
import org.junit.Assert;
import org.junit.Test;
Comment on lines +3 to +12

public class AssembleEIP1559TransactionServiceTest {
@Test
public void shouldInstantiateOutsideTransactionV1Package() {
Client client = mock(Client.class);
when(client.getCryptoSuite()).thenReturn(new CryptoSuite(CryptoType.ECDSA_TYPE));
when(client.isWASM()).thenReturn(false);
when(client.isSupportTransactionV1()).thenReturn(true);

AssembleEIP1559TransactionService service = new AssembleEIP1559TransactionService(client);

Assert.assertNotNull(service);
Assert.assertTrue(service instanceof AssembleTransactionService);
}
}
Loading