Fix typos (#133)

* Fix typos

* revert chains/unit_testnet

* revert chains

* fix review comments (thx @AlexVanin)
This commit is contained in:
Evgeniy Kulikov 2019-02-13 21:01:10 +03:00 committed by decentralisedkev
parent 845d719698
commit 67cbcac643
25 changed files with 40 additions and 40 deletions

View file

@ -58,7 +58,7 @@ func (e *Element) Prev() *Element {
}
// BigInt attempts to get the underlying value of the element as a big integer.
// Will panic if the assertion failed which will be catched by the VM.
// Will panic if the assertion failed which will be caught by the VM.
func (e *Element) BigInt() *big.Int {
switch t := e.value.(type) {
case *BigIntegerItem:
@ -70,7 +70,7 @@ func (e *Element) BigInt() *big.Int {
}
// Bool attempts to get the underlying value of the element as a boolean.
// Will panic if the assertion failed which will be catched by the VM.
// Will panic if the assertion failed which will be caught by the VM.
func (e *Element) Bool() bool {
if v, ok := e.value.Value().(*big.Int); ok {
return v.Int64() == 1
@ -79,7 +79,7 @@ func (e *Element) Bool() bool {
}
// Bytes attempts to get the underlying value of the element as a byte array.
// Will panic if the assertion failed which will be catched by the VM.
// Will panic if the assertion failed which will be caught by the VM.
func (e *Element) Bytes() []byte {
return e.value.Value().([]byte)
}