github.com/TrueBlocks/trueblocks-core/src/apps/chifra@v0.0.0-20241022031540-b362680128f7/pkg/articulate/slurp.go (about) 1 package articulate 2 3 import ( 4 "github.com/TrueBlocks/trueblocks-core/src/apps/chifra/pkg/types" 5 ) 6 7 func (abiCache *AbiCache) ArticulateSlurp(slurp *types.Slurp) error { 8 tx := types.Transaction{ 9 To: slurp.To, 10 Input: slurp.Input, 11 } 12 13 if err := abiCache.ArticulateTransaction(&tx); err != nil { 14 return err 15 } 16 17 slurp.ArticulatedTx = tx.ArticulatedTx 18 // TODO: We could add `message` here, but we'd have to modify the `types.Slurp` struct 19 return nil 20 }