Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc_ func debug and del testnet/ #48

Merged
merged 2 commits into from
Apr 27, 2022
Merged
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
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