Skip to content
This repository was archived by the owner on Mar 2, 2022. It is now read-only.

nanaones/score-external-return-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SAMPLE SCORE for check return type

requirement

Docker
chrome browser
ICONex wallet

Step

1. start T-Bears docker container

$ docker run -it --name tbears -p 9000:9000 iconloop/tbears:mainnet

2. pull this repo[in docker container]

$ git clone https://github.com/nanaones/score-external-return-test

3. deploy with T-Bears

$ cd ./score-external-return-test .

$ tbears deploy -k ./keystore_test1 ./test .

Input your keystore password: .

Keystore password is test1_Account then, you can see

Send deploy request successfully. If you want to check SCORE deployed successfully, execute txresult command transaction hash: 0xcd948ebdb5aa158b399f50963be87e921acdaabdd93a68481a535b038ac4b91e

copy transaction hash

4. check SCORE address

$ tbears txresult [type txhash] .

like this

$ tbears txresult 0xcd948ebdb5aa158b399f50963be87e921acdaabdd93a68481a535b038ac4b91e

5. check it on ICONex(in chrome browser)

how to change network


Set network

img

Then, you can see your contract method on ICONex

move to contract tab & paste contract address.

img

you can see return values.

Type bool

img .

Type dict

img .

Type int

img .

Type list

img

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages