Skip to content

Commit

Permalink
Merge pull request #48 from oracleNetworkProtocol/worry-free
Browse files Browse the repository at this point in the history
rpc_ func debug and del testnet/
  • Loading branch information
soooc authored Apr 27, 2022
2 parents f159540 + 7236e85 commit 5378934
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 1,620 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,10 @@ We have active, helpful communities on Twitter, Discord, and Telegram.
* [Telegram](https://t.me/plugchain)


## mainnet Status
[Main net](https://github.com/oracleNetworkProtocol/mainnet)


## Testnet Status
[Test process document](https://oraclenetworkprotocol.github.io/plugchain/get-started/testnet.html)
[Test net](https://github.com/oracleNetworkProtocol/testnet)
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
build:
context: ./
dockerfile: Dockerfile
command: './scripts/setup.sh'
command: './scripts/setup-docker.sh'

plugchain_node1:
depends_on:
Expand All @@ -39,7 +39,7 @@ services:
networks:
localnet:
ipv4_address: 192.17.10.3
# command: './scripts/setup.sh'
# command: './scripts/setup-docker.sh'
tty: true

plugchain_node2:
Expand All @@ -60,7 +60,7 @@ services:
networks:
localnet:
ipv4_address: 192.17.10.4
command: './scripts/setup.sh'
command: './scripts/setup-docker.sh'

plugchain_node3:
depends_on:
Expand All @@ -80,7 +80,7 @@ services:
networks:
localnet:
ipv4_address: 192.17.10.5
command: './scripts/setup.sh'
command: './scripts/setup-docker.sh'

networks:
localnet:
Expand Down
10 changes: 8 additions & 2 deletions rpc/ethereum/namespaces/rpc/prc20.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,15 @@ func (e *PublicAPI) Prc20TokenInfo(trans rpctypes.TransactionArgs, blockNrOrHash
continue
}
trans.Data = (*hexutil.Bytes)(&data)
res, _ := e.Call(trans, blockNrOrHash, nil)
res, err := e.Call(trans, blockNrOrHash, nil)
if err != nil {
continue
}

unRes, _ := pvmtypes.ERC20Contract.ABI.Unpack(v, res)
unRes, err := pvmtypes.ERC20Contract.ABI.Unpack(v, res)
if err != nil {
continue
}
result[v] = unRes[0]
}

Expand Down
File renamed without changes.
22 changes: 0 additions & 22 deletions testnet/README.md

This file was deleted.

Loading

0 comments on commit 5378934

Please sign in to comment.