mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-26 03:25:09 +00:00
17 lines
364 B
Go
17 lines
364 B
Go
package business
|
|
|
|
import "log"
|
|
|
|
func Redeem() error {
|
|
contract, err := getContract()
|
|
if err != nil {
|
|
return err
|
|
}
|
|
issueResponse, err := contract.SubmitTransaction("redeem", "MagnetoCorp", "00001", "DigiBank", "Org2MSP", "2020-11-30")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
log.Println("Process issue transaction response." + string(issueResponse))
|
|
return nil
|
|
|
|
}
|