diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-10 03:12:25 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-10 03:12:25 +0800 |
commit | bac9a94ddf20dc530966cbf6cd384aaf94aedc77 (patch) | |
tree | 0ced967e60315698cc5056a984d7678c417bc1ce /common | |
parent | 0e703d92ac9df61e2ededa8c895c70ded101a607 (diff) | |
parent | 14994fa21bf6f05554ff370d41005d06b68d20a5 (diff) | |
download | dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.gz dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.bz2 dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.lz dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.xz dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.tar.zst dexon-bac9a94ddf20dc530966cbf6cd384aaf94aedc77.zip |
Merge branch 'release/0.9.28'
Diffstat (limited to 'common')
-rw-r--r-- | common/big.go | 8 | ||||
-rw-r--r-- | common/compiler/solidity_test.go | 4 | ||||
-rw-r--r-- | common/natspec/natspec_e2e_test.go | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/common/big.go b/common/big.go index 3257b179d..05d56daba 100644 --- a/common/big.go +++ b/common/big.go @@ -36,16 +36,16 @@ func Big(num string) *big.Int { return n } -// BigD +// Bytes2Big // -// Shortcut for new(big.Int).SetBytes(...) -func Bytes2Big(data []byte) *big.Int { +func BytesToBig(data []byte) *big.Int { n := new(big.Int) n.SetBytes(data) return n } -func BigD(data []byte) *big.Int { return Bytes2Big(data) } +func Bytes2Big(data []byte) *big.Int { return BytesToBig(data) } +func BigD(data []byte) *big.Int { return BytesToBig(data) } func String2Big(num string) *big.Int { n := new(big.Int) diff --git a/common/compiler/solidity_test.go b/common/compiler/solidity_test.go index 46f733e59..59b6b6cd6 100644 --- a/common/compiler/solidity_test.go +++ b/common/compiler/solidity_test.go @@ -31,7 +31,7 @@ func TestCompiler(t *testing.T) { if err != nil { t.Skip("solc not found: skip") } else if sol.Version() != solcVersion { - t.Logf("WARNING: a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) + t.Skip("WARNING: skipping due to a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) } contracts, err := sol.Compile(source) if err != nil { @@ -54,7 +54,7 @@ func TestCompileError(t *testing.T) { if err != nil || sol.version != solcVersion { t.Skip("solc not found: skip") } else if sol.Version() != solcVersion { - t.Logf("WARNING: a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) + t.Skip("WARNING: skipping due to a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) } contracts, err := sol.Compile(source[2:]) if err == nil { diff --git a/common/natspec/natspec_e2e_test.go b/common/natspec/natspec_e2e_test.go index a8d318b57..7e9172649 100644 --- a/common/natspec/natspec_e2e_test.go +++ b/common/natspec/natspec_e2e_test.go @@ -119,7 +119,7 @@ func testEth(t *testing.T) (ethereum *eth.Ethereum, err error) { testAddress := strings.TrimPrefix(testAccount.Address.Hex(), "0x") // set up mock genesis with balance on the testAddress - core.GenesisData = []byte(`{ + core.GenesisAccounts = []byte(`{ "` + testAddress + `": {"balance": "` + testBalance + `"} }`) @@ -181,7 +181,7 @@ func (self *testFrontend) applyTxs() { // end to end test func TestNatspecE2E(t *testing.T) { - // t.Skip() + t.Skip() tf := testInit(t) defer tf.ethereum.Stop() |