Skip to content

Commit

Permalink
Merge pull request #539 from anandrgitnirman/master
Browse files Browse the repository at this point in the history
Point to the latest platform contract
  • Loading branch information
anandrgitnirman authored Apr 28, 2021
2 parents ed619c4 + eb7db3d commit a5bf99f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
4 changes: 2 additions & 2 deletions blockchain/ethereum_test_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type SimulatedEthereumEnvironment struct {
}

func (env *SimulatedEthereumEnvironment) SnetTransferTokens(to *bind.TransactOpts, amount int64) *SimulatedEthereumEnvironment {
_, err := env.SingularityNetToken.TransferTokens(EstimateGas(env.SingnetWallet), to.From, big.NewInt(amount))
_, err := env.SingularityNetToken.Transfer(EstimateGas(env.SingnetWallet), to.From, big.NewInt(amount))
if err != nil {
panic(fmt.Sprintf("Unable to transfer tokens: %v", err))
}
Expand Down Expand Up @@ -91,7 +91,7 @@ func getTestWallet() (privateKey *ecdsa.PrivateKey, wallet *bind.TransactOpts) {
}

func deployContracts(env *SimulatedEthereumEnvironment) {
tokenAddress, _, token, err := DeploySingularityNetToken(EstimateGas(env.SingnetWallet), env.Backend)
tokenAddress, _, token, err := DeploySingularityNetToken(EstimateGas(env.SingnetWallet), env.Backend, "SingularityNet Token", "AGI")
if err != nil {
panic(fmt.Sprintf("Unable to deploy SingularityNetToken contract, error: %v", err))
}
Expand Down
32 changes: 13 additions & 19 deletions resources/blockchain/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions resources/blockchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"bip39": "2.5.0",
"fs-extra": "5.0.0",
"ganache-cli": "6.1.6",
"singularitynet-platform-contracts": "0.3.4",
"singularitynet-token-contracts": "2.0.1",
"singularitynet-platform-contracts": "1.0.0",
"singularitynet-token-contracts": "3.0.0",
"truffle": "4.1.13",
"truffle-contract": "3.0.6",
"command-line-args": "5.0.2"
Expand Down

0 comments on commit a5bf99f

Please sign in to comment.